Prophet Optimization error
- Dominant language
- Python
- Stars
- 20.4k
- Forks
- 4.6k
- Avg merge
- 19h 52m
- Merged PRs (30d)
- 1
Description
Please Help asap I have a project due in a couple days and I am trying to use prophet here is my code and error message. I am creating a stock market prediction web app. Every time I put in code for m=prophet() and try to use it this is what I get.
RuntimeError: Error during optimization! Command 'C:\Users\jorba\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\prophet\stan_model\prophet_model.bin random seed=47623 data file=C:\Users\jorba\AppData\Local\Temp\tmpdettfxal\x5flnp8b.json init=C:\Users\jorba\AppData\Local\Temp\tmpdettfxal\g2_1pp2n.json output file=C:\Users\jorba\AppData\Local\Temp\tmpdettfxal\prophet_modeli_5ct35q\prophet_model-20231201164815.csv method=optimize algorithm=newton iter=10000' failed:
Traceback:
File "C:\Users\jorba\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 534, in _run_script
exec(code, module.__dict__)
File "C:\Users\jorba\PROJECT.py", line 47, in
m.fit(df_train)
File "C:\Users\jorba\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\prophet\forecaster.py", line 1232, in fit
self.params = self.stan_backend.fit(stan_init, dat, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jorba\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\prophet\models.py", line 128, in fit
self.stan_fit = self.model.optimize(**args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jorba\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\cmdstanpy\model.py", line 696, in optimize
raise RuntimeError(msg)
[PROJECT.txt](https://github.com/facebook/prophet/files/13518028/PROJECT.txt)
Contributor guide
Assessment
This issue has not been assessed yet.