diff --git a/autoPyTorch/pipeline/components/training/metrics/metrics.py b/autoPyTorch/pipeline/components/training/metrics/metrics.py index b669e4ede..0d82b9622 100644 --- a/autoPyTorch/pipeline/components/training/metrics/metrics.py +++ b/autoPyTorch/pipeline/components/training/metrics/metrics.py @@ -36,7 +36,8 @@ worst_possible_result=MAXINT, greater_is_better=False) r2 = make_metric('r2', - sklearn.metrics.r2_score) + sklearn.metrics.r2_score, + worst_possible_result=-MAXINT) # Standard Classification Scores accuracy = make_metric('accuracy',