UserDefinedLikelihood#

class cuqi.likelihood.UserDefinedLikelihood(dim=None, logpdf_func=None, gradient_func=None, geometry=None, name=None)#

Class to wrap user-defined likelihood functions.

Parameters:
  • dim (int) – Dimension of the likelihood.

  • logpdf_func (callable) – Function evaluating log density function.

  • gradient_func (callable) – Function evaluating the gradient of the log density.

  • geometry (Geometry) – Geometry of the likelihood.

__init__(dim=None, logpdf_func=None, gradient_func=None, geometry=None, name=None)#

Methods

__init__([dim, logpdf_func, gradient_func, ...])

get_parameter_names()

Return parameter names of likelihood

gradient(*args, **kwargs)

Return gradient of likelihood function

logd(*args, **kwargs)

Returns value of likelihood function

Attributes

dim

Return dimension of likelihood

model

Return model of likelihood

name

Return name of likelihood