Skip to content

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

@eromoe

Description

@eromoe

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

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions