I tried to run a very simple model with weekly data from a pandas dataframe and get the below error. I'm not sure how to troubleshoot this. I get the same error if I add more explicit params for changepoints etc.
FYI, this exact dataset has been fit with fbprophet successfully.
Version: pmprophet-0.2
Python: Python 3.6.7
m = PMProphet(df_city, name='model')
m.fit(method='NUTS')
~/.pyenv/versions/3.6.7/lib/python3.6/site-packages/pmprophet/model.py in generate_priors(self)
243 else:
244 k = len(self.changepoints)
--> 245 cgpt = pm.Deterministic('cgpt', w * pm.Laplace('cgpt_inner', 0, self.changepoints_prior_scale, shape=k))
246 self.priors['changepoints'] = pm.Deterministic('changepoints_%s' % self.name, cgpt)
247 if self.intercept and 'intercept' not in self.priors:
UnboundLocalError: local variable 'w' referenced before assignment
I tried to run a very simple model with weekly data from a pandas dataframe and get the below error. I'm not sure how to troubleshoot this. I get the same error if I add more explicit params for changepoints etc.
FYI, this exact dataset has been fit with fbprophet successfully.
Version: pmprophet-0.2 Python: Python 3.6.7