Skip to content

base

Data ¤

Bases: ABC

Abstract base class for data containers.

Methods:

Name Description
fetch

Fetch or load the data into the container.

fetch() -> None abstractmethod ¤

Fetch or load the data into the container.

LikelihoodBase ¤

Bases: ABC

Abstract base class for likelihoods.

Handles two main components: the data and the model. Subclasses must implement evaluate.

Methods:

Name Description
evaluate

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

Attributes:

Name Type Description
data object

The data used by the likelihood.

model object

The model used by the likelihood.

data: object property ¤

The data used by the likelihood.

model: object property ¤

The model used by the likelihood.

evaluate(params: Mapping[str, FloatLike]) -> FloatScalar abstractmethod ¤

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

Parameters:

Name Type Description Default
params Mapping[str, FloatLike]

Dictionary mapping parameter names to values.

required

Returns:

Type Description
FloatScalar

Log-likelihood value.