Skip to content

Commit

Permalink
Changing metric output type for Brier metric. (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewoldag authored Mar 18, 2024
1 parent 02ceed8 commit 29c1491
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/qp/metrics/concrete_metric_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,13 @@ def evaluate(self, estimate) -> list:
return calculate_rbpe(estimate, self._limits)


#! Should this be implemented as `DistToPointMetric` or `DistToDistMetric` ???
class BrierMetric(DistToPointMetricDigester):
"""Class wrapper around the calculate_brier function. (Which itself is a
wrapper around the `Brier` metric evaluator class).
"""

metric_name = "brier"
metric_output_type = MetricOutputType.one_value_per_distribution
metric_output_type = MetricOutputType.single_value

def __init__(self, limits: tuple = (0.0, 3.0), dx: float = 0.01, **kwargs) -> None:
kwargs.update({"limits": limits, "dx": dx})
Expand Down

0 comments on commit 29c1491

Please sign in to comment.