Skip to content

Commit cb318bc

Browse files
committed
add comment about out of domain data
1 parent afb4a38 commit cb318bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adaptive/learner/average_learner1D.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ def _calc_error_in_mean(self, ys: Sequence[Value], y_avg: Value, n: int) -> floa
352352

353353
def tell_many(self, xs: Points, ys: Sequence[Value]) -> None:
354354
# Check that all x are within the bounds
355+
# TODO: remove this requirement, all other learners add the data
356+
# but ignore it going forward.
355357
if not np.prod([x >= self.bounds[0] and x <= self.bounds[1] for _, x in xs]):
356358
raise ValueError(
357359
"x value out of bounds, "

0 commit comments

Comments
 (0)