facebook / facebook/prophet

AttributeError: 'Prophet' object has no attribute 'stan_backend'

Open
#2,462 17 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
20.4k
Forks
4.6k
Avg merge
19h 52m
Merged PRs (30d)
1

Description

Same code working in cmd(ipython) , but failed in vscode(jupyter)

```python
from prophet import Prophet
m = Prophet()
```

error:
```
2023-07-17 17:42:52,583 - cmdstanpy - DEBUG - cmd: where.exe tbb.dll
cwd: None
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[62], line 1
----> 1 m = Prophet()

File c:\Users\ufo\anaconda3\envs\quant\lib\site-packages\prophet\forecaster.py:143, in Prophet.__init__(self, growth, changepoints, n_changepoints, changepoint_range, yearly_seasonality, weekly_seasonality, daily_seasonality, holidays, seasonality_mode, seasonality_prior_scale, holidays_prior_scale, changepoint_prior_scale, mcmc_samples, interval_width, uncertainty_samples, stan_backend)
141 self.fit_kwargs = {}
142 self.validate_inputs()
--> 143 self._load_stan_backend(stan_backend)

File c:\Users\ufo\anaconda3\envs\quant\lib\site-packages\prophet\forecaster.py:156, in Prophet._load_stan_backend(self, stan_backend)
153 else:
154 self.stan_backend = StanBackendEnum.get_backend_class(stan_backend)()
--> 156 logger.debug("Loaded stan backend: %s", self.stan_backend.get_type())

AttributeError: 'Prophet' object has no attribute 'stan_backend'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.