...
|
...
|
@@ -641,9 +641,7 @@
|
641
|
641
|
"source": [
|
642
|
642
|
"import ipyparallel\n",
|
643
|
643
|
"\n",
|
644
|
|
- "client = ipyparallel.Client()\n",
|
645
|
|
- "# f is a closure, so we have to use cloudpickle -- this is independent of 'adaptive'\n",
|
646
|
|
- "client[:].use_cloudpickle()\n",
|
|
644
|
+ "client = ipyparallel.Client() # You will need to start an `ipcluster` to make this work\n",
|
647
|
645
|
"\n",
|
648
|
646
|
"learner = adaptive.Learner1D(f, bounds=(-1, 1))\n",
|
649
|
647
|
"runner = adaptive.Runner(learner, executor=client, goal=lambda l: l.loss() < 0.01)\n",
|