Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
journal_eiv
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Jörg Martin
journal_eiv
Commits
750207dc
Commit
750207dc
authored
3 years ago
by
Jörg Martin
Browse files
Options
Downloads
Patches
Plain Diff
First submitted version to NEPL
parent
62080bae
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
Experiments/plot_coverage_vs_q.py
+8
-2
8 additions, 2 deletions
Experiments/plot_coverage_vs_q.py
with
8 additions
and
2 deletions
Experiments/plot_coverage_vs_q.py
+
8
−
2
View file @
750207dc
...
...
@@ -12,6 +12,7 @@ import torch
import
torch.backends.cudnn
from
torch.utils.data
import
DataLoader
from
matplotlib.pyplot
import
cm
import
matplotlib
import
matplotlib.pyplot
as
plt
from
tqdm
import
tqdm
...
...
@@ -20,6 +21,11 @@ from EIVTrainingRoutines import train_and_store
from
EIVGeneral.coverage_collect
import
get_coverage_distribution
from
EIVGeneral.manipulate_datasets
import
VerticalCut
font
=
{
'
family
'
:
'
DejaVu Sans
'
,
'
weight
'
:
'
normal
'
,
'
size
'
:
16
}
matplotlib
.
rc
(
'
font
'
,
**
font
)
# coverages to consider
q_range
=
np
.
linspace
(
0.1
,
0.95
)
...
...
@@ -89,9 +95,8 @@ def coverage_diagonal_plot(eiv_coverages, noneiv_coverages, color,
# create figures, together with title and axis labels
plt
.
figure
(
1
)
plt
.
clf
()
plt
.
title
(
'
Coverage for datasets with ground truth
'
)
plt
.
xlabel
(
'
q
'
)
plt
.
ylabel
(
'
coverage
'
)
plt
.
ylabel
(
'
coverage
ground truth
'
)
# datasets to plot and their coloring
datasets
=
[
'
linear
'
,
'
quadratic
'
,
'
cubic
'
,
'
sine
'
]
...
...
@@ -251,5 +256,6 @@ if __name__ == '__main__':
plt
.
legend
()
# save and show
plt
.
tight_layout
()
plt
.
savefig
(
'
results/figures/true_coverage_vs_q.pdf
'
)
plt
.
show
()
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