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

IntegratorLearner: create 'tell_pending' which deprecates 'tell(x, None)'

parent 611426b8
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !107. Comments created here will be created in the context of that merge request.
......@@ -393,6 +393,9 @@ class IntegratorLearner(BaseLearner):
assert ival in self.ivals
self.priority_split.append(ival)
def tell_pending(self):
pass
def propagate_removed(self, ival):
def _propagate_removed_down(ival):
ival.removed = True
......@@ -414,8 +417,8 @@ class IntegratorLearner(BaseLearner):
self._stack.append(x)
self.ivals.add(ival)
def ask(self, n, add_data=True):
if not add_data:
def ask(self, n, tell_pending=True):
if not tell_pending:
raise NotImplementedError(
"Asking points irreversibly changes the learner's data structure.")
points, loss_improvements = self.pop_from_stack(n)
......
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