Skip to content

Commit 5e1d9cd

Browse files
committed
rename 'tell_many_samples' -> 'tell_many_at_point'
1 parent 9aa93ec commit 5e1d9cd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

adaptive/learner/average_learner1D.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def tell(self, x, y):
170170
self.pending_points.discard(x)
171171

172172
def _update_rescaled_error_in_mean(self, x, point_type: str) -> None:
173-
"""Updates self.rescaled_error.
173+
"""Updates ``self.rescaled_error``.
174174
175175
Parameters
176176
----------
@@ -343,15 +343,15 @@ def tell_many(self, xs, ys):
343343
# If we stored more than 1 y-value for the previous x,
344344
# use a more efficient routine to tell many samples
345345
# simultaneously, before we move on to a new x
346-
self.tell_many_samples(x_old, ys_old)
346+
self.tell_many_at_point(x_old, ys_old)
347347
x_old = x
348348
ys_old = [y]
349349
if len(ys_old) == 1:
350350
self.tell(x_old, ys_old[0])
351351
elif len(ys_old) > 1:
352-
self.tell_many_samples(x_old, ys_old)
352+
self.tell_many_at_point(x_old, ys_old)
353353

354-
def tell_many_samples(self, x, ys):
354+
def tell_many_at_point(self, x, ys):
355355
"""Tell the learner about many samples at a certain location x.
356356
357357
Parameters

0 commit comments

Comments
 (0)