From 257cbf6adb3bcbe191ae12ca92d34767d72aaf79 Mon Sep 17 00:00:00 2001 From: Eden Wu Date: Sun, 1 Sep 2024 17:34:44 -0400 Subject: [PATCH] smac debug --- alpha_automl/hyperparameter_tuning/smac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alpha_automl/hyperparameter_tuning/smac.py b/alpha_automl/hyperparameter_tuning/smac.py index c91ad6c..0874969 100644 --- a/alpha_automl/hyperparameter_tuning/smac.py +++ b/alpha_automl/hyperparameter_tuning/smac.py @@ -150,7 +150,7 @@ def train(self, config: Configuration, seed: int = 0) -> float: scoring=self.scorer, error_score='raise', ) - return 1 - np.mean(scores) + return np.mean(scores) def optimize_pipeline(self, pipeline): self.pipeline = pipeline