...
|
...
|
@@ -217,8 +217,9 @@
|
217
|
217
|
"def plot(learner):\n",
|
218
|
218
|
" plot = learner.plot(tri_alpha=0.2)\n",
|
219
|
219
|
" title = f'loss={learner._loss:.3f}, n_points={learner.npoints}'\n",
|
220
|
|
- " opts = dict(plot=dict(title_format=title))\n",
|
221
|
|
- " return plot.Image + plot.EdgePaths.I.clone().opts(**opts) + plot\n",
|
|
220
|
+ " return (plot.Image\n",
|
|
221
|
+ " + plot.EdgePaths.I.opts(plot=dict(title_format=title))\n",
|
|
222
|
+ " + plot)\n",
|
222
|
223
|
"\n",
|
223
|
224
|
"runner.live_plot(plotter=plot, update_interval=0.1)"
|
224
|
225
|
]
|