Skip to content

Commit

Permalink
fixed bug in metrics evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
attila-balint-kul committed Jun 28, 2023
1 parent f874419 commit f11528c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enfobench/evaluation/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def evaluate_metric_on_forecasts(forecasts: pd.DataFrame, metric: Callable) -> p
"""
metrics = {
cutoff: evaluate_metric_on_forecast(group_df, metric)
for cutoff, group_df in forecasts.groupby("cutoff")
for cutoff, group_df in forecasts.groupby("cutoff_date")
}
metrics_df = pd.DataFrame.from_dict(metrics, orient="index", columns=["value"])
return metrics_df
Expand Down

0 comments on commit f11528c

Please sign in to comment.