trajectory_metric_value
python
trajectory_metric_value(configuration: TrajectoryUtilityMetricConfiguration, *, start_values: dict[str, int], end_values: dict[str, int], episode_data: dict[str, float] | None, outcome: EpisodeOutcome) -> floatEvaluate one utility metric for a completed trajectory or episode.
Parameters:
configuration(TrajectoryUtilityMetricConfiguration) – The metric to evaluate.start_values(dict[str, int]) – The trajectory start values.end_values(dict[str, int]) – The trajectory end values.episode_data(dict[str, float] | None) – Optional numeric episode data.outcome(EpisodeOutcome) – The trajectory's outcome.
Returns:
float– The raw metric value, before weighting.