Open Roymprog opened 1 year ago
@Roymprog I get the same error too. See #2354
Getting the same error, left a comment in #2354
IDE: Visual Studio Code OS: Windows : 11 Environement: miniconda: Python Version: 3.10.11 Prophet version 1.1.4 cmdstanpy version: 1.1.0
RuntimeError Traceback (most recent call last) File c:\Users\azamb\miniconda3\envs\tf_env\lib\site-packages\prophet\models.py:90, in CmdStanPyBackend.fit(self, stan_init, stan_data, kwargs) 89 try: ---> 90 self.stan_fit = self.model.optimize(args) 91 except RuntimeError as e: 92 # Fall back on Newton
File c:\Users\azamb\miniconda3\envs\tf_env\lib\site-packages\cmdstanpy\model.py:738, in CmdStanModel.optimize(self, data, seed, inits, output_dir, sig_figs, save_profile, algorithm, init_alpha, tol_obj, tol_rel_obj, tol_grad, tol_rel_grad, tol_param, history_size, iter, save_iterations, require_converged, show_console, refresh, time_fmt, timeout) 737 else: --> 738 raise RuntimeError(msg) 739 mle = CmdStanMLE(runset)
RuntimeError: Error during optimization! Command 'C:\Users\azamb\miniconda3\envs\tf_env\Lib\site-packages\prophet\stan_model\prophet_model.bin random seed=88646 data file=C:\Users\azamb\AppData\Local\Temp\tmpawxd4uzm\t1k02ldr.json init=C:\Users\azamb\AppData\Local\Temp\tmpawxd4uzm\4dz8js4j.json output file=C:\Users\azamb\AppData\Local\Temp\tmpawxd4uzm\prophet_model02tsxu8f\prophet_model-20230621160805.csv method=optimize algorithm=lbfgs iter=10000' failed:
During handling of the above exception, another exception occurred:
RuntimeError Traceback (most recent call last) Cell In[8], line 4 1 #Initialize the model and fit the data 2 #call the model 3 m = Prophet(daily_seasonality=True) ----> 4 m.fit(df)
File c:\Users\azamb\miniconda3\envs\tf_env\lib\site-packages\prophet\forecaster.py:1181, in Prophet.fit(self, df, **kwargs) ... --> 738 raise RuntimeError(msg) 739 mle = CmdStanMLE(runset) 740 return mle
RuntimeError: Error during optimization! Command 'C:\Users\azamb\miniconda3\envs\tf_env\Lib\site-packages\prophet\stan_model\prophet_model.bin random seed=59954 data file=C:\Users\azamb\AppData\Local\Temp\tmpawxd4uzm\1y2fhr5x.json init=C:\Users\azamb\AppData\Local\Temp\tmpawxd4uzm\s986b71d.json output file=C:\Users\azamb\AppData\Local\Temp\tmpawxd4uzm\prophet_model9m239t2w\prophet_model-20230621160805.csv method=optimize algorithm=newton iter=10000' failed: Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
Version: 1.1.2 Minimum reproducible example:
Output:
When I run the command from the log I get a
Segmentation fault
like this:This makes me think
prophet_model.bin
is somehow corrupted.