Skip to content

Commit 3bfb22d

Browse files
committed
add comment about first point that is sampled
1 parent 21a8ef9 commit 3bfb22d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adaptive/learner/average_learner1D.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def ask(self, n: int, tell_pending: bool = True) -> Tuple[Points, List[float]]:
119119
points, loss_improvements = self._ask_for_more_samples(x, n)
120120
# If less than 2 points were sampled, sample a new one
121121
elif len(self.data) <= 1:
122+
# TODO: if `n` is very large, we should suggest a few different points.
122123
points, loss_improvements = self._ask_for_new_point(n)
123124
#  Else, check the resampling condition
124125
else:

0 commit comments

Comments
 (0)