Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement of automatic text detection #903

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Fixed R2 calculation
andreygetmanov committed Dec 19, 2022
commit c0ed0d7643d11ed9c4d70d07f3619c2d92201b8d
1 change: 1 addition & 0 deletions fedot/core/composer/metrics.py
Original file line number Diff line number Diff line change
@@ -214,6 +214,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)