Brown-Brigadiers / insanalytics

Need to sell a house? Find the best market price but with INSANE ANALYTICS!
0 stars 0 forks source link

Fix Linear Regression Function #2

Open AmirZur opened 7 years ago

AmirZur commented 7 years ago

Add column to data table (before the other parameters). Add [1] to your parameter list, before multiplying it with the coefficients. If you want to, change the 3by3 to 4by4 or x_squared (x times x transposed). Call the linear regression function once, and have a different function to multiply the parameters with the coefficients (still remember to add a 1 in front of all your parameters, so you have an intercept).

nithishbn commented 7 years ago

I'm not sure I can simply add the [1] to the data table. I may have to create a new data table and copy the entries into it 😂