Skip to content
Snippets Groups Projects
Commit a9f6349c authored by Bas Nijholt's avatar Bas Nijholt
Browse files

fix the incorrect loss requirement for the AverageLearner in the docs

parent 05727f98
No related branches found
No related tags found
No related merge requests found
Pipeline #12931 passed
......@@ -40,7 +40,8 @@ implementation the seed parameter can be ignored by the function).
.. jupyter-execute::
learner = adaptive.AverageLearner(g, atol=None, rtol=0.01)
runner = adaptive.Runner(learner, goal=lambda l: l.loss() < 2)
# `loss < 1` means that we reached the `rtol` or `atol`
runner = adaptive.Runner(learner, goal=lambda l: l.loss() < 1)
.. jupyter-execute::
:hide-code:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment