On Jun 10, 2020, at 5:26 AM, Michael Hall <mik3hall@gmail.com> wrote:



On Jun 10, 2020, at 2:52 AM, Jenna <william108@gmail.com> wrote:

Hi. Is there a way to see the model that is generated in the form
<https://weka.8497.n7.nabble.com/file/t341/higher_degree.png>


Curve fitting?

Not sure how you would accomplish that with Weka. But with Apache commons math 3 maybe something like the below.
It converts Weka instances to double arrays and then uses commons math.
This was code I didn’t end up using and didn’t finish.
I instead did a data transform taking the natural log of both x and y and then doing a linear regression.
This assumes the relationship is a power law like…

Y = aX^b


For me I was mainly interested in how a constantly increasing X affected the Y response variable. If you have more than one attribute to include in the polynomial I’m not sure how that would work. This might be too simplistic for you.