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
8d911afd
Commit
8d911afd
authored
Mar 06, 2020
by
Léo Bouscarrat
Browse files
Add log to find no_weight bug
parent
69f71671
Changes
2
Show whitespace changes
Inline
Side-by-side
code/bolsonaro/models/omp_forest.py
View file @
8d911afd
...
...
@@ -134,7 +134,7 @@ class SingleOmpForest(OmpForest):
Make all the base tree predictions
:param X: a Forest
:return: a np.array of the predictions of the
entire fores
t
:return: a np.array of the predictions of the
trees selected by OMP without applyong the weigh
t
"""
forest_predictions
=
np
.
array
([
tree
.
predict
(
X
)
for
tree
in
self
.
_base_forest_estimator
.
estimators_
])
...
...
code/compute_results.py
View file @
8d911afd
...
...
@@ -365,11 +365,13 @@ if __name__ == "__main__":
omp_with_params_experiment_score_metric
=
extract_scores_across_seeds_and_extracted_forest_sizes
(
args
.
models_dir
,
args
.
results_dir
,
args
.
experiment_ids
[
2
])
#omp_with_params_without_weights
logger
.
info
(
'Loading omp_
with_param
s experiment scores...'
)
logger
.
info
(
'Loading omp_
no_weight
s experiment scores...'
)
omp_with_params_without_weights_train_scores
,
omp_with_params_without_weights_dev_scores
,
omp_with_params_without_weights_test_scores
,
_
,
\
omp_with_params_experiment_score_metric
=
extract_scores_across_seeds_and_extracted_forest_sizes
(
args
.
models_dir
,
args
.
results_dir
,
args
.
experiment_ids
[
2
],
weights
=
False
)
print
(
omp_with_params_without_weights_test_scores
)
"""# base_with_params
logger.info('Loading base_with_params experiment scores 2...')
_, _, base_with_params_test_scores_2,
\
...
...
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