GithubHelp home page GithubHelp logo

Comments (5)

bletham avatar bletham commented on April 27, 2024

Can you verify that pystan is working?

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.

YingRuoyuan avatar YingRuoyuan commented on April 27, 2024

It was hang here:

# bin/python3
Python 3.5.2 (default, Jul 20 2016, 13:58:31) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pystan
>>> model_code = 'parameters {real y;} model {y ~ normal(0,1);}'
>>> model = pystan.StanModel(model_code=model_code)
INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_5944b02c79788fa0db5b3a93728ca2bf NOW.

should I reinstall the pystan?

from prophet.

bletham avatar bletham commented on April 27, 2024

Yes the installation is failing because pystan is not working.
You could try reinstalling. It seems that the cython version could be another potential source of problem: stan-dev/pystan#206

from prophet.

YingRuoyuan avatar YingRuoyuan commented on April 27, 2024

@bletham ,Thank you very much,I found the reason, it is the same with Which other dependencies for Python+Linux? ,I upgrade the VM to 2G, it gone be work.

from prophet.

bletham avatar bletham commented on April 27, 2024

Wonderful! I added a note to the installation instructions about the memory requirement in VMs (5e8e3ee). Thanks for helping debug this.

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.