Skip to content

Commit b6e4c00

Browse files
basnijholtjbweston
andcommitted
improve lambda and Runner explanation
Co-Authored-By: Joseph Weston <[email protected]>
1 parent 19ee27a commit b6e4c00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Use ``learner.interpolated_on_grid()`` optionally with a argument ``n`` to speci
2828
Why can I not use a ``lambda`` function?
2929
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3030

31-
The functions evaluations are done on an executor.
31+
When using the `~adaptive.Runner` the learner's function is evaluated in different Python processes.
3232
Therefore, the ``function`` needs to be serialized (pickled) and send to the executor, ``lambda``\s cannot be pickled.
3333
Instead you can probably use ``functools.partial`` to accomplish what you want to do.
3434

0 commit comments

Comments
 (0)