jesterTOV.inference.base.likelihood.LikelihoodBase#

class LikelihoodBase[source]#

Bases: ABC

Base class for likelihoods.

This class is designed for likelihoods where data is encapsulated within the likelihood object during initialization. This differs from other frameworks (e.g., jimgw) that pass data at evaluation time.

The likelihood encapsulates: - The data: observations or measurements (stored internally) - The model: theoretical predictions (computed from parameters)

It evaluates the log-likelihood for a given set of parameters, using the internally stored data.

__init__()#

Methods

__init__()

evaluate(params)

Evaluate the log-likelihood for a given set of parameters.

Attributes

data

The data for the likelihood.

model

The model for the likelihood.

property data: Any#

The data for the likelihood.

Returns:

Any – The data object. Specific type depends on the likelihood implementation.

abstractmethod evaluate(params)[source]#

Evaluate the log-likelihood for a given set of parameters.

Parameters:

params (dict[str, Float]) – Dictionary of parameter names to values.

Return type:

Float

Returns:

log_likelihood (Float) – The log-likelihood value.

property model: Any#

The model for the likelihood.

Returns:

Any – The model object. Specific type depends on the likelihood implementation.