Skip to content

Commit e23aec3

Browse files
committed
change the required loss to 1e-3 because the loss definition changed
For the LearnerND
1 parent 412757b commit e23aec3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/source/tutorial/tutorial.LearnerND.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,13 @@ of the learner drops quickly with increasing number of dimensions.
3434

3535
.. jupyter-execute::
3636

37-
# this step takes a lot of time, it will finish at about 3300 points, which can take up to 6 minutes
3837
def sphere(xyz):
3938
x, y, z = xyz
4039
a = 0.4
4140
return x + z**2 + np.exp(-(x**2 + y**2 + z**2 - 0.75**2)**2/a**4)
4241

4342
learner = adaptive.LearnerND(sphere, bounds=[(-1, 1), (-1, 1), (-1, 1)])
44-
runner = adaptive.Runner(learner, goal=lambda l: l.loss() < 0.01)
43+
runner = adaptive.Runner(learner, goal=lambda l: l.loss() < 1e-3)
4544

4645
.. jupyter-execute::
4746
:hide-code:

0 commit comments

Comments
 (0)