stared / livelossplot

Live training loss plot in Jupyter Notebook for Keras, PyTorch and others
https://p.migdal.pl/livelossplot
MIT License
1.29k stars 142 forks source link

Bokeh backend #57

Closed rafajak closed 5 years ago

rafajak commented 5 years ago

Hi, Here are my scripts introducing a Bokeh backend.

Github won't render bokeh graphs, so here's a screenshot of example output: tiny.cc/qfs45y

I wasn't sure how to address plot sizing, as plot width and height in Bokeh are expressed in pixels, while matplotlib uses physical sizes and DPIs. I'm suggesting a change in livelossplot/generic_plot.py, which gives a default of figsize=[400,300] for each individual plot, if Bokeh backend is specified. Perhaps there are more elegant ways of approaching this - looking forward to hearing your thoughts on this :)

Cheers, Raf

stared commented 5 years ago

Thanks @rafajak ! Once improved, I would love to merge it.

A few comments:

Misc: