Skip to content

Commit a7e5390

Browse files
Fixed R2 calculation
1 parent 9c49f08 commit a7e5390

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fedot/core/composer/metrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ class R2(QualityMetric):
214214
default_value = 0
215215

216216
@staticmethod
217+
@from_maximised_metric
217218
def metric(reference: InputData, predicted: OutputData) -> float:
218219
return r2_score(y_true=reference.target, y_pred=predicted.predict)
219220

0 commit comments

Comments
 (0)