GithubHelp home page GithubHelp logo

Comments (5)

seanjtaylor avatar seanjtaylor commented on April 26, 2024

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.

Vfisa avatar Vfisa commented on April 26, 2024

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).

Sales data:
https://bitbucket.org/VFisa/kbc_forecasting_prophet/src/d4027c5ee48bf60bff4a7d5767f656e1034299c1/sales.csv?at=master&fileviewer=file-view-default

from prophet.

bletham avatar bletham commented on April 26, 2024

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.

Vfisa avatar Vfisa commented on April 26, 2024

[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.

seanjtaylor avatar seanjtaylor commented on April 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.