We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeError Traceback (most recent call last) in () 1 m = Prophet() ----> 2 m.fit(df);
/Users/korymathewson/anaconda2/lib/python2.7/site-packages/fbprophet/forecaster.pyc in fit(self, df) 340 341 self.set_changepoints() --> 342 A = self.get_changepoint_matrix() 343 changepoint_indexes = self.get_changepoint_indexes() 344
/Users/korymathewson/anaconda2/lib/python2.7/site-packages/fbprophet/forecaster.pyc in get_changepoint_matrix(self) 191 192 def get_changepoint_matrix(self): --> 193 changepoint_indexes = self.get_changepoint_indexes() 194 195 A = np.zeros((self.history.shape[0], len(changepoint_indexes)))
/Users/korymathewson/anaconda2/lib/python2.7/site-packages/fbprophet/forecaster.pyc in get_changepoint_indexes(self) 184 # the historical data. 185 indexes.append(row_index.get_loc(cp)) --> 186 return np.array(indexes).astype(np.int) 187 188 def get_changepoint_times(self):
TypeError: long() argument must be a string or a number, not 'slice'
The text was updated successfully, but these errors were encountered:
Seems to be happening when there are two rows for a given date
Sorry, something went wrong.
Related: #32
The latest commit fixes this issue. Could you install from Github and make sure it is working for you?
Hey @bletham, had the same error and installing the latest version from Github did indeed fix this error. Thank you
bletham
No branches or pull requests
TypeError Traceback (most recent call last)
in ()
1 m = Prophet()
----> 2 m.fit(df);
/Users/korymathewson/anaconda2/lib/python2.7/site-packages/fbprophet/forecaster.pyc in fit(self, df)
340
341 self.set_changepoints()
--> 342 A = self.get_changepoint_matrix()
343 changepoint_indexes = self.get_changepoint_indexes()
344
/Users/korymathewson/anaconda2/lib/python2.7/site-packages/fbprophet/forecaster.pyc in get_changepoint_matrix(self)
191
192 def get_changepoint_matrix(self):
--> 193 changepoint_indexes = self.get_changepoint_indexes()
194
195 A = np.zeros((self.history.shape[0], len(changepoint_indexes)))
/Users/korymathewson/anaconda2/lib/python2.7/site-packages/fbprophet/forecaster.pyc in get_changepoint_indexes(self)
184 # the historical data.
185 indexes.append(row_index.get_loc(cp))
--> 186 return np.array(indexes).astype(np.int)
187
188 def get_changepoint_times(self):
TypeError: long() argument must be a string or a number, not 'slice'
The text was updated successfully, but these errors were encountered: