Closed sjoerdvansteenkiste closed 8 years ago
Yes absolutely! This would be great as a Hook, that can be told which logger entry(entries) to plot.
@sjoerdvansteenkiste That's a desirable feature indeed. I also suggest that you look at https://plot.ly/python/ which makes nice plots which can be viewed and updated live in the browser.
I guess we'd need different Hooks for different plotting libraries. I'm not a fan of plot.ly
because its proprietary. bokeh
would be my choice I guess. But matplotlib
is also a reasonable choice.
Personally, for mainly this reason (different preferences by different users). I'd leave the plotting to the user. As long as the statistics are easily accessible from the monitors, a quick plot can be generated in a line of code or two.
I agree with @Qwlouse. Bokeh is preferable. @untom: We can still ship a couple of helper hooks for plotting so that someone new can see how to write their own plotting hook. It's also nice to have something that works out of the box.
Basic accuracy monitoring is now provided in the VisualizeAccuracy Hook. Bokeh Server is required for running. Will continue working on this at a later moment
@sjoerdvansteenkiste, I renamed it to BokehVisualizer
since it can be used to visualize any log.
The docstring says that "By default the output saved as a .html file, however a display can be enabled."
but it's not clear how. Is there no live display by default? If so, how to enable it?
@flukeskywalker Sorry didn't see your comment earlier.
Will update the doc string later this week to ensure it specifies the right behaviour. Furthermore dynamic plotting is by default enabled (given a bokeh server is launched). And the resulting visualisation will always be written to an .html file at the specified location.
All in all to close this issue all I need to do is some textual updates and perhaps some catching of errors/warnings launched by bokeh. Will work on this likely tomorrow.
Finished Bokeh Visualisation Hook for release.
Closing this Issue for now. Will re-open if something pops up.
Would it make sense to provide basic plotting functionality to monitors that output per-epoch results (i.e. the accuracy monitor)?