prophet icon indicating copy to clipboard operation
prophet copied to clipboard

Optimization terminated abnormally. Falling back to Newton.

Open mvtkurd opened this issue 3 years ago • 3 comments

hi guys, I got this error when I try to fit my model by prophet WARNING:fbprophet.models:Optimization terminated abnormally. Falling back to Newton. so would you please help me to overcome this error> Also I tried 3 methods but no result.

prophet err

mvtkurd avatar Jun 20 '21 23:06 mvtkurd

When you do .astype('<M8[D]'), I believe you're converting everything to a date. This means you have multiple y values for the same ds value. I think you'll want to aggregate your data at the date level (e.g. sum, or mean with df.groupby('ds').agg()) before putting it into the fit function.

tcuongd avatar Jun 26 '21 01:06 tcuongd

When you do .astype('<M8[D]'), I believe you're converting everything to a date. This means you have multiple y values for the same ds value. I think you'll want to aggregate your data at the date level (e.g. sum, or mean with df.groupby('ds').agg()) before putting it into the it function.

I'm not professional in Prophet. I just followed the video tutorial which explains how we can connect influxdb to prophet and do some forecasting on incoming data from influx cloud. Now can you explain what should I do please?

mvtkurd avatar Jun 26 '21 01:06 mvtkurd

@mvtkurd what is your machine specifications?

aabuabat avatar Jul 11 '22 11:07 aabuabat

@mvtkurd any solutions ?

tulbureandreit avatar Oct 13 '22 10:10 tulbureandreit