Skip to content
GitLab
Next
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jérôme Buisine
wsao
Commits
a92ca5a2
Commit
a92ca5a2
authored
Dec 13, 2020
by
Jérôme BUISINE
Browse files
computation of mae
parent
1035bf1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
sao/utils/analysis.py
View file @
a92ca5a2
...
...
@@ -59,6 +59,9 @@ class FitterAnalysis(Analysis):
def
coefficient_of_determination
(
self
,
surrogate
):
return
r2_score
(
self
.
ytest
,
surrogate
.
predict
(
self
.
xtest
))
def
mae
(
self
,
surrogate
):
return
np
.
mean
(
np
.
abs
(
self
.
ytest
-
surrogate
.
predict
(
self
.
xtest
)))
#########################################
# OptimizerAnalysis
#########################################
...
...
Write
Preview
Supports
Markdown
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