File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 2121class AverageLearner1D (Learner1D ):
2222 """Learns and predicts a noisy function 'f:ℝ → ℝ^N'.
2323
24- New parameters (wrt Learner1D)
25- ------------------------------
24+ Parameters
25+ ----------
26+ function : callable
27+ The function to learn. Must take a tuple of ``(seed, x)`` and
28+ return a real number or vector.
29+ bounds : pair of reals
30+ The bounds of the interval on which to learn 'function'.
31+ loss_per_interval: callable, optional
32+ A function that returns the loss for a single interval of the domain.
33+ If not provided, then a default is used, which uses the scaled distance
34+ in the x-y plane as the loss. See the notes for more details.
2635 delta : float
2736 This parameter controls the resampling condition. A point is resampled
2837 if its uncertainty is larger than delta times the smallest neighboring
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ class Learner1D(BaseLearner):
171171 ----------
172172 function : callable
173173 The function to learn. Must take a single real parameter and
174- return a real number.
174+ return a real number or 1D array .
175175 bounds : pair of reals
176176 The bounds of the interval on which to learn 'function'.
177177 loss_per_interval: callable, optional
You can’t perform that action at this time.
0 commit comments