Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
evaluation_tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
sedrubal
Masterarbeit
evaluation_tools
Commits
3af5531d
Verified
Commit
3af5531d
authored
Sep 1, 2021
by
Sebastian Endres
Browse files
Options
Downloads
Patches
Plain Diff
Different colors for cross-tests and not-cross-tests
parent
0167c53f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
evaluate_result_json.ipynb
+1
-1
1 addition, 1 deletion
evaluate_result_json.ipynb
with
1 addition
and
1 deletion
evaluate_result_json.ipynb
+
1
−
1
View file @
3af5531d
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
" [test.avg for test in sat_tests],\n",
" [test.avg for test in sat_tests],\n",
" # xerr=[test.var for test in sat_tests],\n",
" # xerr=[test.var for test in sat_tests],\n",
" align=\"center\",\n",
" align=\"center\",\n",
" color=\"#3465A4\",\n",
" color=
[
\"#3465A4\"
if test.server.name == test.client.name else \"#888\" for test in sat_tests]
,\n",
" )\n",
" )\n",
" ax.errorbar(\n",
" ax.errorbar(\n",
" x=[test.avg for test in sat_tests],\n",
" x=[test.avg for test in sat_tests],\n",
...
...
%% Cell type:code id:46f15e96 tags:
%% Cell type:code id:46f15e96 tags:
```
python
```
python
from
result_parser
import
Result
from
result_parser
import
Result
from
matplotlib
import
pyplot
as
plt
from
matplotlib
import
pyplot
as
plt
from
ipywidgets
import
interact
,
interactive
,
fixed
,
interact_manual
from
ipywidgets
import
interact
,
interactive
,
fixed
,
interact_manual
import
ipywidgets
as
widgets
import
ipywidgets
as
widgets
result
=
Result
(
"
./result.json
"
)
result
=
Result
(
"
./result.json
"
)
print
(
result
)
print
(
result
)
```
```
%% Cell type:code id:fb2ea311 tags:
%% Cell type:code id:fb2ea311 tags:
```
python
```
python
@interact
(
sort_key
=
widgets
.
Dropdown
(
@interact
(
sort_key
=
widgets
.
Dropdown
(
options
=
[
'
avg
'
,
'
var
'
],
options
=
[
'
avg
'
,
'
var
'
],
value
=
'
avg
'
,
value
=
'
avg
'
,
description
=
'
Sort by:
'
,
description
=
'
Sort by:
'
,
disabled
=
False
,
disabled
=
False
,
))
))
def
plot
(
sort_key
):
def
plot
(
sort_key
):
sat_tests
=
sorted
(
sat_tests
=
sorted
(
result
.
get_all_measuements_of_type
(
"
SAT
"
,
succeeding
=
True
),
result
.
get_all_measuements_of_type
(
"
SAT
"
,
succeeding
=
True
),
key
=
lambda
m
:
getattr
(
m
,
sort_key
),
key
=
lambda
m
:
getattr
(
m
,
sort_key
),
)
)
units
=
[
test
.
unit
for
test
in
sat_tests
]
units
=
[
test
.
unit
for
test
in
sat_tests
]
assert
all
((
unit
==
units
[
0
]
for
unit
in
units
))
assert
all
((
unit
==
units
[
0
]
for
unit
in
units
))
unit
=
units
[
0
]
unit
=
units
[
0
]
plt
.
rcParams
[
"
figure.figsize
"
]
=
15
,
15
plt
.
rcParams
[
"
figure.figsize
"
]
=
15
,
15
fig
,
ax
=
plt
.
subplots
()
fig
,
ax
=
plt
.
subplots
()
barh
=
ax
.
barh
(
barh
=
ax
.
barh
(
[
test
.
combination
for
test
in
sat_tests
],
[
test
.
combination
for
test
in
sat_tests
],
[
test
.
avg
for
test
in
sat_tests
],
[
test
.
avg
for
test
in
sat_tests
],
# xerr=[test.var for test in sat_tests],
# xerr=[test.var for test in sat_tests],
align
=
"
center
"
,
align
=
"
center
"
,
color
=
"
#3465A4
"
,
color
=
[
"
#3465A4
"
if
test
.
server
.
name
==
test
.
client
.
name
else
"
#888
"
for
test
in
sat_tests
]
,
)
)
ax
.
errorbar
(
ax
.
errorbar
(
x
=
[
test
.
avg
for
test
in
sat_tests
],
x
=
[
test
.
avg
for
test
in
sat_tests
],
y
=
[
test
.
combination
for
test
in
sat_tests
],
y
=
[
test
.
combination
for
test
in
sat_tests
],
xerr
=
[
test
.
var
for
test
in
sat_tests
],
xerr
=
[
test
.
var
for
test
in
sat_tests
],
lw
=
2
,
lw
=
2
,
capsize
=
4
,
capsize
=
4
,
capthick
=
4
,
capthick
=
4
,
color
=
"
red
"
,
color
=
"
red
"
,
fmt
=
"
none
"
,
fmt
=
"
none
"
,
)
)
ax
.
bar_label
(
ax
.
bar_label
(
container
=
barh
,
container
=
barh
,
labels
=
[
test
.
details
for
test
in
sat_tests
],
labels
=
[
test
.
details
for
test
in
sat_tests
],
color
=
"
#fff
"
,
color
=
"
#fff
"
,
label_type
=
"
center
"
,
label_type
=
"
center
"
,
)
)
ax
.
set_xlabel
(
f
"
Goodput (
{
unit
}
)
"
)
ax
.
set_xlabel
(
f
"
Goodput (
{
unit
}
)
"
)
ax
.
set_title
(
"
SAT Goodput Measurement Results of Succeeding Combinations
"
)
ax
.
set_title
(
"
SAT Goodput Measurement Results of Succeeding Combinations
"
)
ax
.
xaxis
.
grid
(
True
)
ax
.
xaxis
.
grid
(
True
)
plt
.
show
()
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