Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mu-map
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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tamino Huxohl
mu-map
Commits
18715a99
Commit
18715a99
authored
2 years ago
by
Tamino Huxohl
Browse files
Options
Downloads
Patches
Plain Diff
add script to evaluate the amount of outlier runs depending on training parameters
parent
4398a11a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mu_map/random_search/eval/outlier.py
+26
-0
26 additions, 0 deletions
mu_map/random_search/eval/outlier.py
with
26 additions
and
0 deletions
mu_map/random_search/eval/outlier.py
0 → 100644
+
26
−
0
View file @
18715a99
from
mu_map.random_search.eval.params
import
parameter_groups
from
mu_map.random_search.eval.util
import
filter_by_params
,
load_data
,
remove_outliers
data
=
load_data
(
"
cgan_random_search/
"
)
n_total
=
len
(
data
)
outlier_runs
=
pd
.
read_csv
(
"
cgan_random_search/outliers.csv
"
)
outlier_runs
=
outlier_runs
[
outlier_runs
[
"
outlier
"
]]
outlier_runs
=
list
(
outlier_runs
[
"
run
"
])
data_outlier
=
dict
(
filter
(
lambda
i
:
i
[
0
]
in
outlier_runs
,
data
.
items
()))
n_outlier
=
len
(
data_outlier
)
print
(
f
"
There are
{
n_outlier
}
outlier runs in
{
n_total
}
total runs which is
{
100
*
n_outlier
/
n_total
:
.
2
f
}
%
"
)
print
()
print
(
f
"
By Parameters:
"
)
for
param_label
,
param_groups
in
parameter_groups
.
items
():
param_label
=
"
"
.
join
(
map
(
lambda
_str
:
_str
[
0
].
upper
()
+
_str
[
1
:],
param_label
.
split
(
"
_
"
)))
print
(
f
"
-
{
param_label
}
"
)
for
label
,
value
in
param_groups
.
groups
.
items
():
n_outlier
=
len
(
filter_by_params
(
data_outlier
,
value
,
param_groups
.
keys
))
n_total
=
len
(
filter_by_params
(
data
,
value
,
param_groups
.
keys
))
print
(
f
"
-
{
label
:
>
12
}
:
{
str
(
n_outlier
)
:
>
2
}
/
{
str
(
n_total
)
:
>
2
}
=
{
100
*
n_outlier
/
n_total
:
.
2
f
}
%
"
)
print
()
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