Skip to content

Commit d5774ff

Browse files
committed
simplify Learner2D plotting in the notebook
1 parent 3e56870 commit d5774ff

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

learner.ipynb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,7 @@
218218
"source": [
219219
"def plot(learner):\n",
220220
" plot = learner.plot(tri_alpha=0.2)\n",
221-
" title = f'loss={learner._loss:.3f}, n_points={learner.npoints}'\n",
222-
" return (plot.Image\n",
223-
" + plot.EdgePaths.I.opts(plot=dict(title_format=title))\n",
224-
" + plot)\n",
221+
" return plot.Image + plot.EdgePaths.I + plot\n",
225222
"\n",
226223
"runner.live_plot(plotter=plot, update_interval=0.1)"
227224
]

0 commit comments

Comments
 (0)