Skip to content

Commit c8e88a9

Browse files
committed
Fix scorers
1 parent c8a5138 commit c8e88a9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

content/python_files/feature_engineering.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,10 +687,10 @@ def build_targets(prediction_time, electricity, horizons):
687687
cv_results = hgbr_predictions.skb.cross_validate(
688688
cv=ts_cv_5,
689689
scoring={
690-
"r2": get_scorer("r2"),
691-
"d2_poisson": make_scorer(d2_tweedie_score, power=2.0),
692-
"d2_gamma": make_scorer(d2_tweedie_score, power=1.0),
693690
"mape": make_scorer(mean_absolute_percentage_error),
691+
"r2": get_scorer("r2"),
692+
"d2_poisson": make_scorer(d2_tweedie_score, power=1.0),
693+
"d2_gamma": make_scorer(d2_tweedie_score, power=2.0),
694694
},
695695
return_train_score=True,
696696
return_pipeline=True,

0 commit comments

Comments
 (0)