pybop.costs._likelihoods#
Classes#
Base class for likelihoods |
|
This class represents a Gaussian Log Likelihood, which assumes that the |
|
This class represents a Gaussian Log Likelihood with a known sigma, |
Module Contents#
- class pybop.costs._likelihoods.BaseLikelihood(problem, sigma=None)[source]#
Bases:
pybop.costs.base_cost.BaseCostBase class for likelihoods
- class pybop.costs._likelihoods.GaussianLogLikelihood(problem)[source]#
Bases:
BaseLikelihoodThis class represents a Gaussian Log Likelihood, which assumes that the data follows a Gaussian distribution and computes the log-likelihood of observed data under this assumption.
- _logpi#
Precomputed offset value for the log-likelihood function.
- Type:
float
- _evaluate(x, grad=None)[source]#
Evaluates the Gaussian log-likelihood for the given parameters.
- Parameters:
x (array_like) – The parameters for which to evaluate the log-likelihood. The last self.n_outputs elements are assumed to be the standard deviations of the Gaussian distributions.
- Returns:
The log-likelihood value, or -inf if the standard deviations are received as non-positive.
- Return type:
float
- class pybop.costs._likelihoods.GaussianLogLikelihoodKnownSigma(problem, sigma)[source]#
Bases:
BaseLikelihoodThis class represents a Gaussian Log Likelihood with a known sigma, which assumes that the data follows a Gaussian distribution and computes the log-likelihood of observed data under this assumption.
- _logpi#
Precomputed offset value for the log-likelihood function.
- Type:
float