Open pochtar opened 1 year ago
Ignore multiple processes, they seem like leftovers after previously stuck runs (seems like jupyter doesn't have control over them).
Another observation:
m.fit(line_p.iloc[0:113])
works,
m.fit(line_p.iloc[0:114])
doesn't work,
m.fit(line_p.iloc[1:114])
surprisingly works too, as well as m.fit(line_p.iloc[1:])
and any other number from
except for 0.
Is there a max limit of 113 lines I missed somewhere in the docs? My data is weekly so it's about 28.25 months.
A workaround for those who hit that too: it seems that this 2019 bug https://github.com/facebook/prophet/issues/842 has not been fixed yet.
A temporary solution: use Newton, like this:
m.fit(line_p, algorithm='Newton')
For the maintainers: LBFGS seems unstable, and falling back to Newton doesn't work either. If LBFGS is challenging to fix, maybe it makes sense to make Newton default instead of a non-working fallback, and let whoever needs LBFGS choose it at their risk.
Python 3.10.8, Prophet 1.1.2.
Code:
line_p.csv:
Result: it computes over 5 hours and never finishes.
An interesting observation: if you supply all but the last line (or less), i.e.:
it finishes almost instantly:
But if you try this, it hangs and computes forever: Process params: