NegativeLogLikelihood

class pmrf.evaluators.NegativeLogLikelihood(mll: MarginalLogLikelihood | GibbsMarginalLogLikelihood)

Bases: AbstractEvaluator

Computes the negative of the log of the probability of observed data.

Wrapper around pmrf.evaluators.MarginalLogLikelihood that is useful for performing Maximum Likelihood Estimation.

Parameters:

mll (pmrf.evaluators.MarginalLogLikelihood | pmrf.evaluators.GibbsMarginalLogLikelihood) – The underlying marginal log likelihood.

__call__(model: Model, frequency: Frequency, **kwargs) Array

Evaluate the model response over the specified frequency range.

Parameters:
  • model (Model) – The model instance to evaluate.

  • freq (Frequency) – The frequency object defining the evaluation points.

  • **kwargs (dict) – Additional keyword arguments for the evaluation process.

Returns:

The evaluated model response.

Return type:

jnp.ndarray

mll: MarginalLogLikelihood | GibbsMarginalLogLikelihood

The underlying MLL instance.