Commit a43e8900 authored by Andrey Getmanov's avatar Andrey Getmanov
Browse files

Fixed R2 calculation

No related merge requests found
Showing with 1 addition and 0 deletions
+1 -0
......@@ -213,6 +213,7 @@ class R2(QualityMetric):
default_value = 0
@staticmethod
@from_maximised_metric
def metric(reference: InputData, predicted: OutputData) -> float:
return r2_score(y_true=reference.target, y_pred=predicted.predict)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment