Skip to content

Commit 8d206f2

Browse files
committed
replace async_h with f_parallel
1 parent 64c1c94 commit 8d206f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/tutorial/tutorial.advanced-topics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ async def f_parallel(x):
429429
Finally we provide the asynchronous function to the `learner` and run it via `AsyncRunner`.
430430

431431
```{code-cell} ipython3
432-
learner = adaptive.Learner1D(async_h, bounds=(-3.5, 3.5))
432+
learner = adaptive.Learner1D(f_parallel, bounds=(-3.5, 3.5))
433433
434434
runner = adaptive.AsyncRunner(learner, goal=lambda l: l.loss() < 0.01, ntasks=20)
435435
```

0 commit comments

Comments
 (0)