Changed get_param and set_param to _get_params and _set_params

This commit is contained in:
Neil Lawrence 2013-01-18 12:31:37 +00:00
parent 688d6ac7a5
commit 3c700dfa50
33 changed files with 239 additions and 358 deletions

View file

@ -73,12 +73,12 @@ class Metropolis_Hastings:
def predict(self,function,args):
"""Make a prediction for the function, to which we will pass the additional arguments"""
param = self.model.get_param()
param = self.model._get_params()
fs = []
for p in self.chain:
self.model.set_param(p)
self.model._set_params(p)
fs.append(function(*args))
self.model.set_param(param)# reset model to starting state
self.model._set_params(param)# reset model to starting state
return fs