Skip to content

Evaluation

Evaluation consumes the ConditionedResult forwarded by an inner Filter, computes the configured evaluations, and attaches an EvaluationResult to it.

with Evaluation(observation_scoring_config=scoring_config):
    with Filter(filter_config=filter_config):
        result = dsx.condition(
            "f",
            dynamics,
            obs_times=obs_times,
            obs_values=obs_values,
        )

scores = result.evaluation_result.observation_scores

With dsx.condition, the scores are available on the returned result without adding NumPyro sites. With dsx.sample, Evaluation registers the configured scores as deterministic sites through the result's deferred callback.

Effectful handlers for evaluating conditioned dynamical-model results.

Evaluation dataclass

Bases: ObjectInterpretation, HandlesSelf

Evaluate outputs forwarded by an inner conditioning handler.