Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Luc Giffon
bolsonaro
Commits
bf240b77
Commit
bf240b77
authored
Mar 06, 2020
by
Charly Lamothe
Browse files
Add missing self in ensemble_selection_forest_regressor
parent
1194ee2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
code/bolsonaro/models/ensemble_selection_forest_regressor.py
View file @
bf240b77
...
...
@@ -31,7 +31,7 @@ class EnsembleSelectionForestRegressor(BaseEstimator, metaclass=ABCMeta):
val_score
=
self
.
_score_metric
(
estimator
.
predict
(
X_val
),
y_val
)
scores_list
.
append
(
val_score
)
class_list
=
list
(
library
)
class_list
=
list
(
self
.
_
library
)
m
=
np
.
argmax
(
np
.
asarray
(
scores_list
))
self
.
_ensemble_selected
=
[
class_list
[
m
]]
temp_pred
=
class_list
[
m
].
predict
(
X_val
)
...
...
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