You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had this problem also by even just having the first value as [0, 0]. Checking out another repo mentioned on another issue: https://github.com/mljs/ml#regression.
I had this problem also by even just having the first value as [0, 0]. Checking out another repo mentioned on another issue: https://github.com/mljs/ml#regression.
That one doesn't seem to be much better, struggles to handle similar problems. I am shocked at how hard it seems to be to find a reasonable library to do this.
Hi, I am trying to fit an exponential curve to some points that have negative initial values.
For example, these points:
When I run it through
regression.exponential(exponentialPoints)
it outputs a regression model where all the y values are "NaN"... 🤔I am wondering why this is happening. I would think it's perfectly fine for an exponential curve to have negative y values.
For example, consider this line: y = 2 * e^(3x) - 7
(and see it plotted here: https://www.wolframalpha.com/input/?i=plot+y%3D+2+*+e%5E%283x%29+-+7)
You can also run the code here: https://repl.it/@JimLynch/exponential-reg-negative-y#index.js
Thanks!
The text was updated successfully, but these errors were encountered: