Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VOB
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
Petra Gospodnetic
VOB
Commits
11a3dd27
Commit
11a3dd27
authored
4 years ago
by
gospodnetic
Browse files
Options
Downloads
Patches
Plain Diff
Discarded average per model per approach
parent
c33643d5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Benchmark.py
+24
-0
24 additions, 0 deletions
Benchmark.py
vob.py
+2
-0
2 additions, 0 deletions
vob.py
with
26 additions
and
0 deletions
Benchmark.py
+
24
−
0
View file @
11a3dd27
...
@@ -109,3 +109,27 @@ class Benchmark:
...
@@ -109,3 +109,27 @@ class Benchmark:
print
(
"
discarded_per_approach: {}
"
.
format
(
discarded_per_approach
))
print
(
"
discarded_per_approach: {}
"
.
format
(
discarded_per_approach
))
return
discarded_per_approach
return
discarded_per_approach
def
get_average_discarded_per_model
(
self
):
discarded_per_model
=
{}
for
model
in
self
.
log_container_per_model
:
model_avg
=
self
.
log_container_per_model
[
model
].
get_avg_discarded
()
discarded_per_model
[
model
]
=
model_avg
print
(
"
discarded_per_model {}
"
.
format
(
discarded_per_model
))
return
discarded_per_model
def
get_average_discarded_per_model_per_approach
(
self
):
discarded_per_model_approach
=
{}
for
model
in
self
.
log_container_per_model
:
for
approach
in
self
.
methods_per_approach
:
log_container
=
LogContainer
(
self
.
log_container_per_model
[
model
].
get_methods_per_approach
())
log_container
.
add_logs
(
self
.
log_container_per_model
[
model
].
get_logs_by_approach
(
approach
))
if
log_container
.
size
()
==
0
:
continue
if
model
in
discarded_per_model_approach
:
discarded_per_model_approach
[
model
][
approach
]
=
log_container
.
get_avg_discarded
()
else
:
discarded_per_model_approach
[
model
]
=
{}
discarded_per_model_approach
[
model
][
approach
]
=
log_container
.
get_avg_discarded
()
print
(
"
discarded_per_model_approach {}
"
.
format
(
discarded_per_model_approach
))
return
discarded_per_model_approach
This diff is collapsed.
Click to expand it.
vob.py
+
2
−
0
View file @
11a3dd27
...
@@ -61,6 +61,8 @@ def main():
...
@@ -61,6 +61,8 @@ def main():
benchmark
.
generate_tex_table
()
benchmark
.
generate_tex_table
()
benchmark
.
get_average_RT_duration_per_model
()
benchmark
.
get_average_RT_duration_per_model
()
benchmark
.
get_average_discarded_per_approach
()
benchmark
.
get_average_discarded_per_approach
()
benchmark
.
get_average_discarded_per_model
()
benchmark
.
get_average_discarded_per_model_per_approach
()
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
...
...
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