Skip to content

Commit 9d93085

Browse files
authored
change worst possible result of r2 (#340)
1 parent 751b9ce commit 9d93085

File tree

1 file changed

+2
-1
lines changed
  • autoPyTorch/pipeline/components/training/metrics

1 file changed

+2
-1
lines changed

autoPyTorch/pipeline/components/training/metrics/metrics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
worst_possible_result=MAXINT,
3737
greater_is_better=False)
3838
r2 = make_metric('r2',
39-
sklearn.metrics.r2_score)
39+
sklearn.metrics.r2_score,
40+
worst_possible_result=-MAXINT)
4041

4142
# Standard Classification Scores
4243
accuracy = make_metric('accuracy',

0 commit comments

Comments
 (0)