Skip to content
Snippets Groups Projects
Commit 3bb54a20 authored by Jorn Hoofwijk's avatar Jorn Hoofwijk
Browse files

resolve 105

parent 4dc4400a
No related branches found
No related tags found
1 merge request!112Resolve "LearnerND fails for BalancingLearner test"
Pipeline #12264 passed
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment