pymc-devs / pymc2

THIS IS THE **OLD** PYMC PROJECT (VERSION 2). PLEASE USE PYMC INSTEAD:
http://pymc-devs.github.com/pymc/
Other
879 stars 229 forks source link

Error in the GP regression example notebook #162

Closed amelio-vazquez-reina closed 7 years ago

amelio-vazquez-reina commented 7 years ago

FYI Cell # 36 currently prints an error in the notebook posted here:

Z = np.linspace(0, 40, 100).reshape(-1, 1)
with model:
    gp_samples = pm.gp.sample_gp(trace, y_obs, Z, samples=50, random_seed=42, progressbar=False)

last few lines of the output (copying from the URL above):

/Users/fonnescj/anaconda3/envs/dev/lib/python3.6/site-packages/theano/gof/fg.py in __init__(self, inputs, outputs, features, clone, update_mapping)
    178
    179         for output in outputs:
--> 180             self.__import_r__(output, reason="init")
    181         for i, output in enumerate(outputs):
    182             output.clients.append(('output', i))

/Users/fonnescj/anaconda3/envs/dev/lib/python3.6/site-packages/theano/gof/fg.py in __import_r__(self, variable, reason)
    359                 raise TypeError("Computation graph contains a NaN. " +
    360                                 variable.type.why_null)
--> 361             raise MissingInputError("Undeclared input", variable=variable)
    362         if not getattr(variable, 'fgraph', None) is self:
    363             self.__setup_r__(variable)

MissingInputError: Undeclared input
amelio-vazquez-reina commented 7 years ago

(this error actually related to PyMC3 so I'm moving it over to this other issue instead.