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
30a57834
Commit
30a57834
authored
5 years ago
by
Charly Lamothe
Browse files
Options
Downloads
Patches
Plain Diff
Temp modif in stage4 result computation to unravel the difference between different subset usages
parent
4dd4fc23
No related branches found
Branches containing commit
No related tags found
1 merge request
!9
Resolve "Experiment pipeline"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/compute_results.py
+16
-3
16 additions, 3 deletions
code/compute_results.py
with
16 additions
and
3 deletions
code/compute_results.py
+
16
−
3
View file @
30a57834
...
...
@@ -328,7 +328,7 @@ if __name__ == "__main__":
ylabel=experiments_score_metric,
title=
'
Loss values of {}
\n
using different training subsets
'
.format(args.dataset_name))
"""
elif
args
.
stage
==
4
:
if
len
(
args
.
experiment_ids
)
!=
3
:
if
len
(
args
.
experiment_ids
)
!=
5
:
raise
ValueError
(
'
In the case of stage 4, the number of specified experiment ids must be 3.
'
)
# Retreive the extracted forest sizes number used in order to have a base forest axis as long as necessary
...
...
@@ -351,6 +351,18 @@ 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
])
# base_with_params
logger
.
info
(
'
Loading base_with_params experiment scores 2...
'
)
_
,
_
,
base_with_params_test_scores_2
,
\
_
=
\
extract_scores_across_seeds_and_forest_size
(
args
.
models_dir
,
args
.
results_dir
,
args
.
experiment_ids
[
3
],
extracted_forest_sizes_number
)
# random_with_params
logger
.
info
(
'
Loading random_with_params experiment scores 2...
'
)
_
,
_
,
random_with_params_test_scores_2
,
\
_
,
_
=
\
extract_scores_across_seeds_and_extracted_forest_sizes
(
args
.
models_dir
,
args
.
results_dir
,
args
.
experiment_ids
[
4
])
# Sanity check on the metrics retreived
if
not
(
base_with_params_experiment_score_metric
==
random_with_params_experiment_score_metric
==
omp_with_params_experiment_score_metric
):
...
...
@@ -362,9 +374,10 @@ if __name__ == "__main__":
Plotter
.
plot_stage2_losses
(
file_path
=
output_path
+
os
.
sep
+
'
losses.png
'
,
all_experiment_scores
=
[
base_with_params_test_scores
,
random_with_params_test_scores
,
all_experiment_scores
=
[
base_with_params_test_scores
,
base_with_params_test_scores_2
,
random_with_params_test_scores
,
random_with_params_test_scores_2
,
omp_with_params_test_scores
],
all_labels
=
[
'
base
'
,
'
random
'
,
'
omp
'
],
all_labels
=
[
'
base
_train-dev
'
,
'
base
'
,
'
random_train-dev
'
,
'
random
'
,
'
omp
'
],
x_value
=
with_params_extracted_forest_sizes
,
xlabel
=
'
Number of trees extracted
'
,
ylabel
=
experiments_score_metric
,
...
...
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