Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ITMO-NSS-team
FEDOT
Commits
a43e8900
Commit
a43e8900
authored
2 years ago
by
Andrey Getmanov
Browse files
Options
Download
Email Patches
Plain Diff
Fixed R2 calculation
parent
18fc54d5
multimodal_benchmarking
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fedot/core/composer/metrics.py
+1
-0
fedot/core/composer/metrics.py
with
1 addition
and
0 deletions
+1
-0
fedot/core/composer/metrics.py
View file @
a43e8900
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help