Giter Club home page Giter Club logo

Comments (8)

stared avatar stared commented on July 25, 2024 1

@duhaime Added skip_first option (e.g. plot_losses = PlotLossesCallback(skip_first=2)) with 6c88783. Should work with versions 0.4.0+.

from livelossplot.

dchen327 avatar dchen327 commented on July 25, 2024 1

@duhaime Added skip_first option (e.g. plot_losses = PlotLossesCallback(skip_first=2)) with 6c88783. Should work with versions 0.4.0+.

When I try using skip_first, I get __init__() got an unexpected keyword argument 'skip_first'. I've tried all of these:

from livelossplot import PlotLossesKerasTF
from livelossplot.inputs.tf_keras import PlotLossesCallback
from livelossplot import PlotLosses

However, initializing gives the error above.

from livelossplot.

minghao-wu avatar minghao-wu commented on July 25, 2024

Some of them might be beyond the scope of this package.

  1. add some light grid lines in the plot.
  2. allow us to add customized horizontal and vertical bars in the plot. It is very common for users to study if their model outperforms the baseline model and how fast their model converges.
  3. A countdown timer.
  4. live GPU utilization.
  5. maxima and minima

BTW, I attempted to plot the loss curve at batch-level granularity. I found it is easy to do so when training, but kinda difficult to do it in evaluation stage. Can you provide an example? I'm using PyTorch.

from livelossplot.

stared avatar stared commented on July 25, 2024

add some light grid lines in the plot.

Use can set matplotlib style https://matplotlib.org/tutorials/introductory/customizing.html. For more/different styles, use https://seaborn.pydata.org/tutorial/aesthetics.html#seaborn-figure-styles.

allow us to add customized horizontal and vertical bars in the plot. It is very common for users to study if their model outperforms the baseline model and how fast their model converges.

Interesting idea. I will consider that.

A countdown timer.

Not sure. It only works if it knows the total number of batches/epochs.

live GPU utilization

You can add this data with in the update. Though, you would need to use some library getting this data (I am not sure how to do it).

maxima and minima

Was thinking about it.

BTW, I attempted to plot the loss curve at batch-level granularity.

I don't recommend that. Plot-drawing is a costly step, and this thing is likely to severely impact performance. For evaluation - I am not sure if you want that. These plots work well for the same x axis for both train and eval.

from livelossplot.

duhaime avatar duhaime commented on July 25, 2024

Hi @stared thanks for this great project!

One nice feature would be if one could pass the PlotLossesKeras constructor a parameter skip that would skip the first n frames. If a cost function drops multiple orders of magnitude, even the log scaled y axis can make it harder to see the learning rate. Skipping the first n frames would allow one to get around this problem...

from livelossplot.

stared avatar stared commented on July 25, 2024

@duhaime A good idea, struggled with the same thing myself.

My idea was to specify some "rescaling" options, e.g. ignoring the first n or taking the last n. If you want to implement that, I would be more than happy to accept a Pull Request.

from livelossplot.

Naich avatar Naich commented on July 25, 2024

The skip_first feature seemed removed after 0.5 release.

from livelossplot.

dchen327 avatar dchen327 commented on July 25, 2024

The skip_first feature seemed removed after 0.5 release.

Is there a new feature added that does the same thing?

from livelossplot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.