...
|
...
|
@@ -204,9 +204,12 @@
|
204
|
204
|
"metadata": {},
|
205
|
205
|
"outputs": [],
|
206
|
206
|
"source": [
|
207
|
|
- "(adaptive.live_plot(runner) +\n",
|
208
|
|
- " adaptive.live_plot(runner, plotter=lambda l: l.plot(triangles_alpha=1).Contours) +\n",
|
209
|
|
- " adaptive.live_plot(runner, plotter=lambda l: l.plot(triangles_alpha=0.2)))"
|
|
207
|
+ "def plot(learner):\n",
|
|
208
|
+ " plot = learner.plot(triangles_alpha=0.2)\n",
|
|
209
|
+ " opts = dict(alpha=1)\n",
|
|
210
|
+ " return plot.Image + plot.Contours.opts(style=opts) + plot\n",
|
|
211
|
+ "\n",
|
|
212
|
+ "adaptive.live_plot(runner, plotter=plot)"
|
210
|
213
|
]
|
211
|
214
|
},
|
212
|
215
|
{
|