Comments (5)
Thanks for the bug report @Vfisa. Does it depend on the dataframe you pass in, or is for any dataframe? Would you mind sharing your input data?
from prophet.
Hi. thanks for a quick response!
I believe the issue is on my machine with P2.7, since it runs correctly on the corporate docker image (P3.6).
from prophet.
I'm unable to replicate the issue with those data, can you verify that pystan is working correctly?
>>> import pystan
>>> model_code = 'parameters {real y;} model {y ~ normal(0,1);}'
>>> model = pystan.StanModel(model_code=model_code)
>>> y = model.sampling(n_jobs=1).extract()['y']
>>> y.mean() # with luck the result will be near 0
from prophet.
[Running] python "test_pystan.py"
INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_5944b02c79788fa0db5b3a93728ca2bf NOW.
Traceback (most recent call last):
File "test_pystan.py", line 4, in
y = model.sampling(n_jobs=1).extract()['y']
File "/Library/Python/2.7/site-packages/pystan/model.py", line 703, in sampling
control=control, **kwargs)
File "/Library/Python/2.7/site-packages/pystan/misc.py", line 484, in _config_argss
argss[i] = _get_valid_stan_args(argss[i])
File "/Library/Python/2.7/site-packages/pystan/misc.py", line 503, in _get_valid_stan_args
args['method'] = stan_args_method_t.SAMPLING
AttributeError: 'Enum' object has no attribute 'SAMPLING'
from prophet.
This almost has to be a PyStan version problem.
https://github.com/stan-dev/pystan/blob/develop/pystan/constants.py#L19 is the current code in PyStan and it hasn't changed in over a year.
You should try to reinstall PyStan, and if it still is broken, file an issue with PyStan. Thanks!
from prophet.
Related Issues (20)
- Python3 setuptools error
- ImportError: cannot import name 'main' from 'cmdstanpy.install_cxx_toolchain' HOT 1
- Cross validation creating error when y data ends before cutoff end + horizon - appeared after update from 0.7.1 to 1.1.5
- forecaster.preprocess() may introduce unwanted behavior for NaN history values in 1.1.5 HOT 2
- How to set up an error term to follow Student t-distribution?
- Adding 2 predictions with their respective confidence intervals
- Time zone issue when fitting prophet in R HOT 1
- Minimum Supported Python version is 3.8, not 3.7
- Fitting hangs in Prophet 1.1.5
- weired x label in model.plot_components(forecast)
- ries
- Hierarchical Model
- Model fit behaves very differently between `datetime64[ns]` and `datetime64[ms]`.
- Amplifying the amplitude of seasonality
- regressor_coefficients not finding regr_names HOT 1
- sample_model() not loading
- Forecast is off by 1
- Prophet Optimization error HOT 1
- Can't seem to forecast values correctly for future dates (few values are coming zero and few are not matching the historical pattern)
- Facebook Prophet ignores manually passed changepoints
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prophet.