Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
adaptive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Quantum Tinkerer
adaptive
Commits
3bb54a20
Commit
3bb54a20
authored
6 years ago
by
Jorn Hoofwijk
Browse files
Options
Downloads
Patches
Plain Diff
resolve 105
parent
4dc4400a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!112
Resolve "LearnerND fails for BalancingLearner test"
Pipeline
#12264
passed
6 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
adaptive/learner/learnerND.py
+3
-4
3 additions, 4 deletions
adaptive/learner/learnerND.py
with
3 additions
and
4 deletions
adaptive/learner/learnerND.py
+
3
−
4
View file @
3bb54a20
...
...
@@ -222,6 +222,7 @@ class LearnerND(BaseLearner):
try
:
self
.
_tri
=
Triangulation
(
self
.
points
)
self
.
update_losses
(
set
(),
self
.
_tri
.
simplices
)
return
self
.
_tri
except
ValueError
:
# A ValueError is raised if we do not have enough points or
...
...
@@ -229,8 +230,6 @@ class LearnerND(BaseLearner):
# a valid triangulation
return
None
# XXX: also compute losses of initial simplex
@property
def
values
(
self
):
return
np
.
array
(
list
(
self
.
data
.
values
()),
dtype
=
float
)
...
...
@@ -359,8 +358,8 @@ class LearnerND(BaseLearner):
# Could not find a simplex, this code should never be reached
assert
self
.
tri
is
not
None
raise
AssertionError
(
"
Could not find a simplex to. Yet there should always be
a simplex
"
"
available if LearnerND.tri() is not None
"
"
Could not find a simplex to
subdivide
. Yet there should always be
"
"
a simplex
available if LearnerND.tri() is not None
.
"
)
def
_ask_best_point
(
self
):
...
...
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