Browse code

update function name

Joseph Weston authored on 26/08/2017 09:50:57
Showing 1 changed files
... ...
@@ -93,7 +93,7 @@
93 93
    "cell_type": "markdown",
94 94
    "metadata": {},
95 95
    "source": [
96
-    "Next we create a \"runner\" that will request points from the learner and evaluate 'func' on them.\n",
96
+    "Next we create a \"runner\" that will request points from the learner and evaluate 'f' on them.\n",
97 97
     "\n",
98 98
     "By default the runner will evaluate the points in parallel using local processes ([`concurrent.futures.ProcessPoolExecutor`](https://docs.python.org/3/library/concurrent.futures.html#processpoolexecutor))."
99 99
    ]
... ...
@@ -162,7 +162,7 @@
162 162
     "learner2 = adaptive.learner.Learner1D(f, bounds=(-1.01, 1.0))\n",
163 163
     "\n",
164 164
     "xs = np.linspace(-1.0, 1.0, len(learner.data))\n",
165
-    "learner2.add_data(xs, map(functools.partial(func, wait=False), xs))\n",
165
+    "learner2.add_data(xs, map(functools.partial(f, wait=False), xs))\n",
166 166
     "\n",
167 167
     "learner2.plot()"
168 168
    ]