Skip to content

Commit

Permalink
Update launch_xgboost.py
Browse files Browse the repository at this point in the history
  • Loading branch information
teyaberg authored Jul 17, 2024
1 parent 4039a96 commit 48550d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MEDS_tabular_automl/scripts/launch_xgboost.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,13 +399,13 @@ def _build_iterators(self):

@TimeableMixin.TimeAs
def evaluate(self) -> float:
"""Evaluates the model on the test set.
"""Evaluates the model on the tuning set.
Returns:
The evaluation metric as the ROC AUC score.
"""
y_pred = self.model.predict(self.dheld_out)
y_true = self.dheld_out.get_label()
y_pred = self.model.predict(self.dtuning)
y_true = self.dtuning.get_label()
return roc_auc_score(y_true, y_pred)


Expand Down

0 comments on commit 48550d1

Please sign in to comment.