stared / livelossplot

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

sliding start of epochs #124

Closed kolban-google closed 3 years ago

kolban-google commented 4 years ago

On the X-Axis, we have the epoch starting at 0. This means that as I train more, the graphs are getting "scrunched" in width. Would it be possible to add the ability to define the width of the graphs in epochs? For example, if I define 100 then the graph will grow to show 0-99 but as I pass that the graph will show 1-100 and then 2-101, and 3-102. Basically a sliding/scrolling graph showing my last 100 epochs?

stared commented 4 years ago

@kolban-google Thanks for asking. We plan to add it in the next edition.

stared commented 3 years ago

Now it works, in livelossplot 0.5.4.

plotlosses = PlotLosses(from_step=...)

For positive numbers, it is "start from the epoch n":

Screenshot 2021-02-03 at 17 28 24

For negative, it is "show only last n epochs":

Screenshot 2021-02-03 at 17 29 55