We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19ee27a commit b6e4c00Copy full SHA for b6e4c00
docs/source/faq.rst
@@ -28,7 +28,7 @@ Use ``learner.interpolated_on_grid()`` optionally with a argument ``n`` to speci
28
Why can I not use a ``lambda`` function?
29
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30
31
-The functions evaluations are done on an executor.
+When using the `~adaptive.Runner` the learner's function is evaluated in different Python processes.
32
Therefore, the ``function`` needs to be serialized (pickled) and send to the executor, ``lambda``\s cannot be pickled.
33
Instead you can probably use ``functools.partial`` to accomplish what you want to do.
34
0 commit comments