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

series_fmt in custom_series notebook #49

Closed lambdaofgod closed 5 years ago

lambdaofgod commented 5 years ago

The example from custom_series notebook doesn't work:

TypeError: init() got an unexpected keyword argument 'series_fmt'

Was series_fmt parameter in an older version?

stared commented 5 years ago

It was introduced in #46. @sebastienlange, could you look at it?

sebastienlange commented 5 years ago

@lambdaofgod, it looks like jupyter notebook has a different version of livelossplot in memory. Could you try restarting your jupyter notebook?

@stared I just downloaded a fresh livelossplot and tried custom_series notebook and minimal. Both gave me the same different error and I had to install neptune-cli. Is it normal? Then both worked for me.

lambdaofgod commented 5 years ago

@sebastienlange yes I did try restarting notebook. I also made sure that I actually had newest version of livelossplot.

sebastienlange commented 5 years ago

@lambdaofgod on my computer, after installation, PlotLosses class is located at C:\Users\lange\Anaconda3\Lib\site-packages\livelossplot\generic_plot.py. Could you try to located the same file on your configuration and share the init def ?

Should be: def __init__(self, figsize=None, cell_size=(6, 4), dynamic_x_axis=False, max_cols=2, max_epoch=None, metric2title={}, series_fmt={'training': '{}', 'validation':'val_{}'}, validationfmt="val{}", plot_extrema=True, fig_path=None, target=MATPLOTLIB_TARGET): ...

stared commented 5 years ago

@sebastienlange It is #51

stared commented 5 years ago

No updates - or confirmations - I close this issue.