Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
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
Model registry
Analyze
Contributor 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
Sören Henning
theodolite
Merge requests
!137
Allow multiple repititions of an experiment
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Allow multiple repititions of an experiment
wetzel/spesb:100-allow-repititions
into
theodolite-kotlin
Overview
8
Commits
9
Pipelines
0
Changes
3
Merged
Benedikt Wetzel
requested to merge
wetzel/spesb:100-allow-repititions
into
theodolite-kotlin
4 years ago
Overview
8
Commits
9
Pipelines
0
Changes
3
Expand
Closes
#100 (closed)
Edited
4 years ago
by
Benedikt Wetzel
0
0
Merge request reports
Viewing commit
a900b84d
Prev
Next
Show latest version
3 files
+
16
−
20
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
a900b84d
minor code enhancements
· a900b84d
Benedikt Wetzel
authored
4 years ago
slope-evaluator/app/main.py
+
3
−
9
Options
@@ -46,13 +46,7 @@ def execute(results, threshold, warmup):
@app.post
(
"
/evaluate-slope
"
,
response_model
=
bool
)
async
def
evaluate_slope
(
request
:
Request
):
data
=
json
.
loads
(
await
request
.
body
())
results
=
[]
for
total_lag
in
data
[
'
total_lags
'
]:
results
.
append
(
execute
(
total_lag
,
data
[
'
threshold
'
],
data
[
'
warmup
'
]
))
for
result
in
results
:
if
not
result
:
return
False
return
True
results
=
[
execute
(
total_lag
,
data
[
'
threshold
'
],
data
[
'
warmup
'
])
for
total_lag
in
data
[
'
total_lags
'
]]
return
all
(
results
)
logger
.
info
(
"
Slope evaluator is online
"
)
\ No newline at end of file
logger
.
info
(
"
SLO evaluator is online
"
)
\ No newline at end of file
Loading