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 21
21
class AverageLearner1D (Learner1D ):
22
22
"""Learns and predicts a noisy function 'f:ℝ → ℝ^N'.
23
23
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.
26
35
delta : float
27
36
This parameter controls the resampling condition. A point is resampled
28
37
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):
171
171
----------
172
172
function : callable
173
173
The function to learn. Must take a single real parameter and
174
- return a real number.
174
+ return a real number or 1D array .
175
175
bounds : pair of reals
176
176
The bounds of the interval on which to learn 'function'.
177
177
loss_per_interval: callable, optional
You can’t perform that action at this time.
0 commit comments