Skip to content

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

Description

@fsaad

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):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions