Skip to content

Commit a9f6349

Browse files
committed
fix the incorrect loss requirement for the AverageLearner in the docs
1 parent 05727f9 commit a9f6349

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/source/tutorial/tutorial.AverageLearner.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ implementation the seed parameter can be ignored by the function).
4040
.. jupyter-execute::
4141

4242
learner = adaptive.AverageLearner(g, atol=None, rtol=0.01)
43-
runner = adaptive.Runner(learner, goal=lambda l: l.loss() < 2)
43+
# `loss < 1` means that we reached the `rtol` or `atol`
44+
runner = adaptive.Runner(learner, goal=lambda l: l.loss() < 1)
4445

4546
.. jupyter-execute::
4647
:hide-code:

0 commit comments

Comments
 (0)