Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
EvoDSS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
eb3u21
EvoDSS
Commits
0c8d23e4
Commit
0c8d23e4
authored
1 year ago
by
Fanis Baikas
Browse files
Options
Downloads
Patches
Plain Diff
Removed white-space padding from plots.
parent
77b66bd9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plot_utils.py
+6
-6
6 additions, 6 deletions
src/plot_utils.py
with
6 additions
and
6 deletions
src/plot_utils.py
+
6
−
6
View file @
0c8d23e4
...
@@ -94,7 +94,7 @@ def best_fitness_vs_gen_plot(dataset_names, subset_prop_list, num_of_trials, res
...
@@ -94,7 +94,7 @@ def best_fitness_vs_gen_plot(dataset_names, subset_prop_list, num_of_trials, res
# fig.suptitle('Generation vs Best fitness')
# fig.suptitle('Generation vs Best fitness')
fig
.
subplots_adjust
(
bottom
=
0.2
,
left
=
0.15
,
right
=
0.78
)
fig
.
subplots_adjust
(
bottom
=
0.2
,
left
=
0.15
,
right
=
0.78
)
plt
.
savefig
(
plots_dir_path
+
'
gen_vs_best_fitness.pdf
'
)
plt
.
savefig
(
plots_dir_path
+
'
gen_vs_best_fitness.pdf
'
,
bbox_inches
=
'
tight
'
,
pad_inches
=
0.0
)
def
best_fitness_vs_time_plot
(
dataset_names
,
subset_prop_list
,
num_of_trials
,
results_dir_path
,
plots_dir_path
):
def
best_fitness_vs_time_plot
(
dataset_names
,
subset_prop_list
,
num_of_trials
,
results_dir_path
,
plots_dir_path
):
# Create figure and set size
# Create figure and set size
...
@@ -159,7 +159,7 @@ def best_fitness_vs_time_plot(dataset_names, subset_prop_list, num_of_trials, re
...
@@ -159,7 +159,7 @@ def best_fitness_vs_time_plot(dataset_names, subset_prop_list, num_of_trials, re
# fig.suptitle('Evolution time vs Best fitness')
# fig.suptitle('Evolution time vs Best fitness')
fig
.
subplots_adjust
(
bottom
=
0.2
,
left
=
0.15
,
right
=
0.78
)
fig
.
subplots_adjust
(
bottom
=
0.2
,
left
=
0.15
,
right
=
0.78
)
plt
.
savefig
(
plots_dir_path
+
'
time_vs_best_fitness.pdf
'
)
plt
.
savefig
(
plots_dir_path
+
'
time_vs_best_fitness.pdf
'
,
bbox_inches
=
'
tight
'
,
pad_inches
=
0.0
)
def
mean_time_per_gen
(
dataset_names
,
subset_prop_list
,
num_of_trials
,
results_dir_path
,
plots_dir_path
):
def
mean_time_per_gen
(
dataset_names
,
subset_prop_list
,
num_of_trials
,
results_dir_path
,
plots_dir_path
):
# Create figure and set size
# Create figure and set size
...
@@ -207,7 +207,7 @@ def mean_time_per_gen(dataset_names, subset_prop_list, num_of_trials, results_di
...
@@ -207,7 +207,7 @@ def mean_time_per_gen(dataset_names, subset_prop_list, num_of_trials, results_di
ax
.
set_xlabel
(
'
Subset proportion (\%)
'
)
ax
.
set_xlabel
(
'
Subset proportion (\%)
'
)
ax
.
legend
()
ax
.
legend
()
plt
.
savefig
(
plots_dir_path
+
'
mean_time_per_gen.pdf
'
,
bbox_inches
=
'
tight
'
)
plt
.
savefig
(
plots_dir_path
+
'
mean_time_per_gen.pdf
'
,
bbox_inches
=
'
tight
'
,
pad_inches
=
0.0
)
def
acc_distribution_histograms_plot
(
dataset_names
,
subset_prop_list
,
results_dir_path
,
plots_dir_path
):
def
acc_distribution_histograms_plot
(
dataset_names
,
subset_prop_list
,
results_dir_path
,
plots_dir_path
):
# Create figure and set size
# Create figure and set size
...
@@ -237,7 +237,7 @@ def acc_distribution_histograms_plot(dataset_names, subset_prop_list, results_di
...
@@ -237,7 +237,7 @@ def acc_distribution_histograms_plot(dataset_names, subset_prop_list, results_di
fig
.
suptitle
(
'
Distribution of \(ACC\) for random balanced subsets -
\n
10000 trials per subset proportion
'
)
fig
.
suptitle
(
'
Distribution of \(ACC\) for random balanced subsets -
\n
10000 trials per subset proportion
'
)
plt
.
tight_layout
()
plt
.
tight_layout
()
plt
.
savefig
(
plots_dir_path
+
'
acc_distribution.pdf
'
,
bbox_inches
=
'
tight
'
)
plt
.
savefig
(
plots_dir_path
+
'
acc_distribution.pdf
'
,
bbox_inches
=
'
tight
'
,
pad_inches
=
0.0
)
def
violin_acc_plot
(
dataset_names
,
subset_prop_list
,
num_of_trials
,
results_dir_path
,
plots_dir_path
):
def
violin_acc_plot
(
dataset_names
,
subset_prop_list
,
num_of_trials
,
results_dir_path
,
plots_dir_path
):
# Create figure and set size
# Create figure and set size
...
@@ -362,7 +362,7 @@ def violin_acc_plot(dataset_names, subset_prop_list, num_of_trials, results_dir_
...
@@ -362,7 +362,7 @@ def violin_acc_plot(dataset_names, subset_prop_list, num_of_trials, results_dir_
ax
[
1
].
set_yticklabels
([])
ax
[
1
].
set_yticklabels
([])
# fig.suptitle('Distributions of \(ACC\) values for multiple subset proportions')
# fig.suptitle('Distributions of \(ACC\) values for multiple subset proportions')
plt
.
tight_layout
()
plt
.
tight_layout
()
plt
.
savefig
(
plots_dir_path
+
'
acc_distribution_violin_plot.pdf
'
,
bbox_inches
=
'
tight
'
)
plt
.
savefig
(
plots_dir_path
+
'
acc_distribution_violin_plot.pdf
'
,
bbox_inches
=
'
tight
'
,
pad_inches
=
0.0
)
def
incremental_learning_plot
(
dataset_names
,
memory_size_list
,
num_of_trials
,
results_dir_path
,
plots_dir_path
):
def
incremental_learning_plot
(
dataset_names
,
memory_size_list
,
num_of_trials
,
results_dir_path
,
plots_dir_path
):
seq_types
=
[
'
low
'
,
'
high
'
]
seq_types
=
[
'
low
'
,
'
high
'
]
...
@@ -442,4 +442,4 @@ def incremental_learning_plot(dataset_names, memory_size_list, num_of_trials, r
...
@@ -442,4 +442,4 @@ def incremental_learning_plot(dataset_names, memory_size_list, num_of_trials, r
plt
.
legend
(
labels
=
labels
,
handles
=
handles
)
plt
.
legend
(
labels
=
labels
,
handles
=
handles
)
# fig.suptitle('Class-incremental learning under memory constraints')
# fig.suptitle('Class-incremental learning under memory constraints')
plt
.
tight_layout
()
plt
.
tight_layout
()
plt
.
savefig
(
plots_dir_path
+
'
incremental_learning_plot.pdf
'
,
bbox_inches
=
'
tight
'
)
plt
.
savefig
(
plots_dir_path
+
'
incremental_learning_plot.pdf
'
,
bbox_inches
=
'
tight
'
,
pad_inches
=
0.0
)
\ No newline at end of file
\ No newline at end of file
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