I use pystan from fbprophet. Problem is with this line: https://github.com/stan-dev/pystan/blob/develop/pystan/model.py#L854.
File “contrib/python/fbprophet/fbprophet/forecaster.py”, line 1116, in fit
stan_fit = model.sampling(**args)
File “contrib/python/pystan/pystan/model.py”, line 581, in sampling
fit.model_name = self.model_name
AttributeError: ‘StanModel’ object has no attribute ‘model_name’
I’ve even customized fbprophet a little to avoid this problem:
setattr(model, 'model_name', 'anon_model') stan_fit = model.sampling(**args)
, but sometimes problem still occurs
Dataset is under NDA.
- Operating System: Ubuntu 18.04 (bionic)
- Python Version: 3.8.6
- PyStan Version: 126.96.36.199
- Compiler/Toolkit: proprietary toolkit, not available externally
Can I just replace self.model_name with some constant value?