Prophet Error: tick_w = max(df_none['horizon'].astype('timedelta64[ns]')) / 10

18 Views Asked by At

I am using Prophet version 1.4 with Anaconda on a 64 bit machine and get the following error:

tick_w = max(df_none['horizon'].astype('timedelta64[ns]')) / 10.

The type of error is:

TypeError: 'NoneType' object is not subscriptable

Based on my research, this was resolved in an older version. I appreciate any suggestion you have.

Tried fbprophet and could not install it, as it might have been discontinued - it could not resolve the environment after a long time. Also, this problem is intermittent and I guess something in data can trigger it, but I do not know what.

I am guessing that may be I should use an older version

1

There are 1 best solutions below

1
Mansour Shams On

This is not a problem with a version but rather a selection of the cost function causing this. This can be corrected by improving data preprocessing to avoid the error