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
Commits
c6b073a0
Commit
c6b073a0
authored
2 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug introduced with
f19a148c
parent
f19a148c
No related branches found
No related tags found
No related merge requests found
Pipeline
#10031
passed
2 years ago
Stage: build
Stage: test
Stage: check
Stage: deploy
Stage: smoketest
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theodolite/src/main/kotlin/rocks/theodolite/core/strategies/restrictionstrategy/LowerBoundRestriction.kt
+3
-1
3 additions, 1 deletion
...e/strategies/restrictionstrategy/LowerBoundRestriction.kt
with
3 additions
and
1 deletion
theodolite/src/main/kotlin/rocks/theodolite/core/strategies/restrictionstrategy/LowerBoundRestriction.kt
+
3
−
1
View file @
c6b073a0
package
rocks.theodolite.core.strategies.restrictionstrategy
import
rocks.theodolite.core.Results
import
java.util.*
/**
* The [LowerBoundRestriction] sets the lower bound of the resources to be examined in the experiment to the value
...
...
@@ -13,7 +14,8 @@ import rocks.theodolite.core.Results
class
LowerBoundRestriction
(
results
:
Results
)
:
RestrictionStrategy
(
results
)
{
override
fun
apply
(
xValue
:
Int
,
yValues
:
List
<
Int
>):
List
<
Int
>
{
val
maxXValue
=
this
.
results
.
getMaxBenchmarkedXDimensionValue
(
xValue
)
// Get previous largest x value or return full list
val
maxXValue
=
this
.
results
.
getMaxBenchmarkedXDimensionValue
(
xValue
)
?:
return
yValues
.
toList
()
// Get previous largest y value or restrict to empty list
val
lowerBound
:
Int
=
this
.
results
.
getOptYDimensionValue
(
maxXValue
)
?:
return
listOf
()
return
yValues
.
filter
{
x
->
x
>=
lowerBound
}
...
...
This diff is collapsed.
Click to expand it.
Sören Henning
@she
mentioned in issue
#403 (closed)
·
2 years ago
mentioned in issue
#403 (closed)
mentioned in issue #403
Toggle commit list
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