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
Merge requests
!23
Resolve "integration-sota"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "integration-sota"
15-integration-sota
into
master
Overview
0
Commits
23
Pipelines
0
Changes
3
Merged
Charly Lamothe
requested to merge
15-integration-sota
into
master
5 years ago
Overview
0
Commits
23
Pipelines
0
Changes
3
Expand
Closes
#15 (closed)
0
0
Merge request reports
Viewing commit
eb638666
Prev
Next
Show latest version
3 files
+
108
−
15
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
eb638666
Last changes in compute_results. TODO: clean the code
· eb638666
Charly Lamothe
authored
5 years ago
code/bolsonaro/visualization/plotter.py
+
4
−
2
Options
@@ -51,6 +51,7 @@ class Plotter(object):
@staticmethod
def
plot_mean_and_CI
(
ax
,
mean
,
lb
,
ub
,
x_value
,
color_mean
=
None
,
facecolor
=
None
,
label
=
None
):
#print(x_value, mean, lb, ub)
# plot the shaded range of the confidence intervals
ax
.
fill_between
(
x_value
,
ub
,
lb
,
facecolor
=
facecolor
,
alpha
=
.
5
)
# plot the mean on top
@@ -105,7 +106,7 @@ class Plotter(object):
@staticmethod
def
plot_stage2_losses
(
file_path
,
all_experiment_scores
,
x_value
,
xlabel
,
ylabel
,
all_labels
,
title
):
xlabel
,
ylabel
,
all_labels
,
title
,
filter_num
=-
1
):
fig
,
ax
=
plt
.
subplots
()
@@ -124,13 +125,14 @@ class Plotter(object):
# Compute the mean and the std for the CI
mean_experiment_scores
=
np
.
average
(
experiment_scores
,
axis
=
0
)
std_experiment_scores
=
np
.
std
(
experiment_scores
,
axis
=
0
)
# Plot the score curve with the CI
Plotter
.
plot_mean_and_CI
(
ax
=
ax
,
mean
=
mean_experiment_scores
,
lb
=
mean_experiment_scores
+
std_experiment_scores
,
ub
=
mean_experiment_scores
-
std_experiment_scores
,
x_value
=
x_value
,
x_value
=
x_value
[:
filter_num
]
if
len
(
mean_experiment_scores
)
==
filter_num
else
x_value
,
color_mean
=
colors
[
i
],
facecolor
=
colors
[
i
],
label
=
all_labels
[
i
]
Loading