Skip to content

Commit

Permalink
change worst possible result of r2
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinkohli committed Nov 22, 2021
1 parent 751b9ce commit af8f823
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoPyTorch/pipeline/components/training/metrics/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit af8f823

Please sign in to comment.