pymc-devs / pymc

Bayesian Modeling and Probabilistic Programming in Python
https://docs.pymc.io/
Other
8.65k stars 1.99k forks source link

Stochastic volatility example does not run #425

Closed ecod3r closed 9 years ago

ecod3r commented 10 years ago

Using the latest Anaconda (and inclyding the required DYLD_FALLBACK_LIBRARY_PATH) on OS X 10.9.1 yields

from scan_perform.scan_perform import *
Traceback (most recent call last):
  File "stochastic_volatility.py", line 113, in <module>
    step = NUTS(model.vars, hessian(start, 6))
  File "stochastic_volatility.py", line 84, in hessian
    h = H(Point(point))
  File "/Users/eu/anaconda/lib/python2.7/site-packages/pymc/point.py", line 9, in __call__
    return self.f(**state)
  File "/Users/eu/anaconda/lib/python2.7/site-packages/theano/compile/function_module.py", line 565, in __call__
    self.inv_finder[c]))
TypeError: Missing required input: log_sigma

For the sake of clarity, I am running

python stochastic_volatility.py

rather than the IPython notebook

twiecki commented 10 years ago

Can you try running the ipynb? That should be more updated and we could just convert it to python.

raddy commented 10 years ago

I'm seeing the same error with either the .py or nb versions.

fonnesbeck commented 10 years ago

I can't replicate this. Which version of Theano do you have installed?

ecod3r commented 10 years ago

Same as raddy, both the .py and the IPython notebook give the same error. I have theano v0.6.0

fonnesbeck commented 10 years ago

Are you also on Anaconda @ecoskian ?

ecod3r commented 10 years ago

Yes @fonnesbeck, the latest Anaconda with Accelerate

fonnesbeck commented 10 years ago

I'm going to have to talk with Anaconda folks about this. Not sure why there are always problems with PyMC on Anaconda, but I cannot get either PyMC 2.3 or 3 run on my system (the former does not even build).

minabks commented 9 years ago

hello , i am looking for a python simulation of the gaussian / heston stochastic model in volatility discretization

twiecki commented 9 years ago

@minabks Can you open a new issue for this?