Error on fit
See original GitHub issueI’ve just installed prophet but It’s not working when I try to fit.
14:11:57 - cmdstanpy - INFO - Chain [1] start processing
14:11:57 - cmdstanpy - INFO - Chain [1] done processing
14:11:57 - cmdstanpy - ERROR - Chain [1] error: terminated by signal 3221225657
Optimization terminated abnormally. Falling back to Newton.
14:11:58 - cmdstanpy - INFO - Chain [1] start processing
14:11:58 - cmdstanpy - INFO - Chain [1] done processing
14:11:58 - cmdstanpy - ERROR - Chain [1] error: terminated by signal 3221225657
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
~\anaconda3\lib\site-packages\prophet\models.py in fit(self, stan_init, stan_data, **kwargs)
101 try:
--> 102 self.stan_fit = self.model.optimize(**args)
103 except RuntimeError as e:
~\anaconda3\lib\site-packages\cmdstanpy\model.py in 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)
730 else:
--> 731 raise RuntimeError(msg)
732 mle = CmdStanMLE(runset)
RuntimeError: Error during optimization:
During handling of the above exception, another exception occurred:
RuntimeError Traceback (most recent call last)
<ipython-input-12-ae8672abeabc> in <module>
1 # Python
2 m = Prophet()
----> 3 m.fit(df)
~\anaconda3\lib\site-packages\prophet\forecaster.py in fit(self, df, **kwargs)
1169 self.params = self.stan_backend.sampling(stan_init, dat, self.mcmc_samples, **kwargs)
1170 else:
-> 1171 self.params = self.stan_backend.fit(stan_init, dat, **kwargs)
1172
1173 self.stan_fit = self.stan_backend.stan_fit
~\anaconda3\lib\site-packages\prophet\models.py in fit(self, stan_init, stan_data, **kwargs)
108 )
109 args['algorithm'] = 'Newton'
--> 110 self.stan_fit = self.model.optimize(**args)
111 else:
112 raise e
~\anaconda3\lib\site-packages\cmdstanpy\model.py in 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)
729 get_logger().warning(msg)
730 else:
--> 731 raise RuntimeError(msg)
732 mle = CmdStanMLE(runset)
733 return mle
RuntimeError: Error during optimization:
Could anyone help me?
Issue Analytics
- State:
- Created a year ago
- Comments:13
Top Results From Across the Web
Fit Models with Measurement Errors
Particularly in the physical sciences, it is common to use measurement errors as weights to incorporate measured variation into the fitting.
Read more >How to return the fit error in Python curve_fit - Stack Overflow
Basically, this is the fitting algorithm telling you that your data is not described well by you model and that you don't need...
Read more >Error Representation and Curvefitting - Rice University
The present article covers the rationale behind the reporting of random (experimental) error, how to represent random error in text, tables, and in...
Read more >Error on fit parameters - ROOT Forum
Hi, I am attaching a plot that shows a pol3 fit to a histogram. I see that the red. chi2 is quite small...
Read more >CVL Tools Vision Guide - Fit Error - Documentation | Cognex
The fit error is a measure of the variance between the shape of the trained pattern and the shape of the pattern instance...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same problem here. I tried creating various new virtual environment, then typing
pip install prophet
but nothing workedI have got mine working.
I installed the cmdstanpy package and imported by using the following…
import cmdstanpy cmdstanpy.install_cmdstan() cmdstanpy.install_cmdstan(compiler=True) # only valid on Windows