Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bolsonaro
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Luc Giffon
bolsonaro
Commits
a59c05b1
Commit
a59c05b1
authored
5 years ago
by
Charly Lamothe
Browse files
Options
Downloads
Patches
Plain Diff
Fix plot in compute_results.py and fix model_weights getter in model_raw_results
parent
ec55d270
No related branches found
No related tags found
1 merge request
!10
Resolve "Visualization"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
code/bolsonaro/models/model_raw_results.py
+1
-1
1 addition, 1 deletion
code/bolsonaro/models/model_raw_results.py
code/compute_results.py
+1
-2
1 addition, 2 deletions
code/compute_results.py
with
2 additions
and
3 deletions
code/bolsonaro/models/model_raw_results.py
+
1
−
1
View file @
a59c05b1
...
...
@@ -25,7 +25,7 @@ class ModelRawResults(object):
@property
def
model_weights
(
self
):
return
self
.
model_weights
return
self
.
_
model_weights
@property
def
training_time
(
self
):
...
...
This diff is collapsed.
Click to expand it.
code/compute_results.py
+
1
−
2
View file @
a59c05b1
...
...
@@ -138,7 +138,6 @@ def extract_weights_across_seeds(models_dir, results_dir, experiment_id):
extracted_forest_sizes
=
os
.
listdir
(
extracted_forest_sizes_root_path
)
extracted_forest_sizes
=
[
nb_tree
for
nb_tree
in
extracted_forest_sizes
if
not
'
no_weights
'
in
nb_tree
]
extracted_forest_sizes
.
sort
(
key
=
int
)
all_extracted_forest_sizes
.
append
(
list
(
map
(
int
,
extracted_forest_sizes
)))
for
extracted_forest_size
in
extracted_forest_sizes
:
# models/{experiment_id}/seeds/{seed}/extracted_forest_sizes/{extracted_forest_size}
extracted_forest_size_path
=
extracted_forest_sizes_root_path
+
os
.
sep
+
extracted_forest_size
...
...
@@ -392,7 +391,7 @@ 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_params experiment scores...
'
)
logger
.
info
(
'
Loading omp_with_params
without weights
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment