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
86c4cf10
Commit
86c4cf10
authored
Mar 06, 2020
by
Charly Lamothe
Browse files
Fix wrong variable name in ensemble_selection_forest_regressor
parent
bf240b77
Changes
1
Hide whitespace changes
Inline
Side-by-side
code/bolsonaro/models/ensemble_selection_forest_regressor.py
View file @
86c4cf10
...
...
@@ -45,7 +45,7 @@ class EnsembleSelectionForestRegressor(BaseEstimator, metaclass=ABCMeta):
temp_score
=
self
.
_score_metric
(
temp_mean
,
y_val
)
if
(
temp_score
<
best_score
):
candidate_index
=
j
best_score
=
tmp_score
best_score
=
t
e
mp_score
temp_pred
=
np
.
delete
(
temp_pred
,
-
1
,
0
)
self
.
_ensemble_selected
.
append
(
class_list
[
candidate_index
])
temp_pred
=
np
.
vstack
((
temp_pred
,
class_list
[
candidate_index
].
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