Skip to content
Snippets Groups Projects
Commit 20dfbc4c authored by Bas Nijholt's avatar Bas Nijholt
Browse files

remove code that is never executed

parent c4fb88f3
No related branches found
No related tags found
1 merge request!100Resolve "Learner1D doesn't correctly set the interpolated loss when a point is added"
......@@ -145,14 +145,6 @@ class Learner1D(BaseLearner):
self.losses_combined[a, b] = (b - a) * loss / dx
a = b
start = self.neighbors_combined.bisect_left(x_left)
end = self.neighbors_combined.bisect_left(x_right)
if start == end:
# XXX: I don't know what is happening here or how
# it happens. Removing this code doesn't break
# tests (Bas).
self.losses_combined[x_left, x_right] = loss
def update_losses(self, x, real=True):
# when we add a new point x, we should update the losses
x_left, x_right = self.find_neighbors(x, self.neighbors)
......
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