-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strange regression coefficients #73
Comments
I have been issues with polynomial on 2.0.0 - thanks for posting that version 1.4.0 works :) |
Can I please have more information about the discrepancies between 2.0.0 and 1.4.0? The coefficients are the same between versions for me. This could be caused by rounding as 2.0.0 rounds by default. It can be configured with the |
I had a similar issue in the "linear" method, but the problem was caused from the parameters passing. |
i'm having the same problem, I too solved it with 1.4.0, but the explanation from @billy0059 is not clear to me, why was the value casted as string? |
Here's another example of 2.0.0 providing weird results: Input: Output: |
Tom-Alexander was right. To get 2.0 matching with 1.4 I just had to update my precision: regression.polynomial(data, {order: 4, precision: 20}); |
I am trying to fit the polynomial line into the data-set below as polynomial with order or 4 and 10,
and all coefficients are 0. Is it normal? Polynomial of high degree should normally over-fit the data,
but here it is just a line.
regression version: 2.0.0
Data looks like this:
The text was updated successfully, but these errors were encountered: