Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gaussian Process (GP) is not available in the inference language #688

Open
fsaad opened this issue Mar 24, 2018 · 0 comments
Open

Gaussian Process (GP) is not available in the inference language #688

fsaad opened this issue Mar 24, 2018 · 0 comments

Comments

@fsaad
Copy link
Collaborator

fsaad commented Mar 24, 2018

Raises a NotImplementedError for the SPAux.

venture[script] > define gp = make_gp(gp_mean_const(0.), gp_cov_se(1))
<GP mean=CONST(0.0) covariance=SE(l^2=1.0)>
venture[script] > gp([1,2])
/scratch/fsaad/Venturecxx/build/lib.linux-x86_64-2.7/venture/lite/psp.py in simulate(self, args)
    598 
    599   def simulate(self, args):
--> 600     return self._disptach(args).simulate(args)
    601 
    602   def gradientOfSimulate(self, args, value, direction):

/scratch/fsaad/Venturecxx/build/lib.linux-x86_64-2.7/venture/lite/psp.py in simulate(self, args)
    502   def simulate(self,args):
    503     return self.f_type.wrap_return(
--> 504       self.psp.simulate(self.f_type.unwrap_args(args)))
    505 
    506   def gradientOfSimulate(self, args, value, direction):

/scratch/fsaad/Venturecxx/build/lib.linux-x86_64-2.7/venture/lite/gp.py in simulate(self, args)
    143 
    144   def simulate(self, args):
--> 145     samples = args.spaux().samples
    146     xs = args.operandValues()[0]
    147     return _gp_sample(self.mean, self.covariance, samples, xs,

/scratch/fsaad/Venturecxx/build/lib.linux-x86_64-2.7/venture/lite/sp_use.py in spaux(self)
    192     return self.f(self.args.operandValues())
    193 
--> 194   def spaux(self): return self.args.spaux()
    195 
    196   def requestValue(self):

/scratch/fsaad/Venturecxx/build/lib.linux-x86_64-2.7/venture/lite/psp.py in spaux(self)
    353   def spaux(self):
    354     """The SP's saved auxiliary state."""
--> 355     raise NotImplementedError
    356 
    357   def madeSPAux(self):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant