Giter Club home page Giter Club logo

Comments (13)

collinp-spindance avatar collinp-spindance commented on August 29, 2024 1

@stared Hmm. I used pip install git+git://github.com/stared/livelossplot.git. What is the best way to get the latest version from github? Clone the repo?

from livelossplot.

leofidus avatar leofidus commented on August 29, 2024 1

Same problem, I'm using pip install git+git://github.com/stared/livelossplot.git@651f1be to just get the latest commit before the neptune integration was introduced

from livelossplot.

khalido avatar khalido commented on August 29, 2024

I'm using the tf.keras version and getting the same error:

from livelossplot.tf_keras import PlotLossesCallback
plot_losses = PlotLossesCallback()

from livelossplot.

stared avatar stared commented on August 29, 2024

@khalido @bobloki Thanks for reporting.

It should not require neptune (after #47 it required, but I fixed that with 7876f06; as the general philosophy is to avoid ML packages).

I spotted an unintentional import, fixed with 090eb51. Installing from git should solve it. Version 0.3.3 (not yet released) should work.

from livelossplot.

collinp-spindance avatar collinp-spindance commented on August 29, 2024

@stared thank you for addressing this.

I have been having this same issue. I did try re-installing livelossplot from git, but unfortunately am still receiving this same error, even after re-starting jupyter. I will continue to search for the issue, but please do let me know if you come across anything else.

from livelossplot.

stared avatar stared commented on August 29, 2024

@collinp-spindance Stange.
Could you share the new error message?

from livelossplot.

collinp-spindance avatar collinp-spindance commented on August 29, 2024

@stared

# to plot live loss function
from livelossplot.keras import PlotLossesCallback

plot_losses = PlotLossesCallback()
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-13-4f4ff436e080> in <module>
      2 from livelossplot.keras import PlotLossesCallback
      3 
----> 4 plot_losses = PlotLossesCallback()

/anaconda3/lib/python3.6/site-packages/livelossplot/keras.py in __init__(self, **kwargs)
      7     def __init__(self, **kwargs):
      8         keras.callbacks.Callback.__init__(self)
----> 9         _PlotLossesCallback.__init__(self, **kwargs)

/anaconda3/lib/python3.6/site-packages/livelossplot/generic_keras.py in __init__(self, **kwargs)
     26 class _PlotLossesCallback():
     27     def __init__(self, **kwargs):
---> 28         self.liveplot = PlotLosses(**kwargs)
     29 
     30     def on_train_begin(self, logs={}):

/anaconda3/lib/python3.6/site-packages/livelossplot/generic_plot.py in __init__(self, figsize, cell_size, dynamic_x_axis, max_cols, max_epoch, metric2title, series_fmt, validation_fmt, plot_extrema, fig_path, target)
     37         self.plot_extrema = plot_extrema
     38         self.target = target
---> 39         from .neptune_integration import neptune_send_plot
     40         self.fig_path = fig_path
     41 

/anaconda3/lib/python3.6/site-packages/livelossplot/neptune_integration.py in <module>
----> 1 import neptune
      2 
      3 ctx = neptune.Context()
      4 
      5 

ModuleNotFoundError: No module named 'neptune'

from livelossplot.

stared avatar stared commented on August 29, 2024

@collinp-spindance THen it is NOT the latest version from GitHub (though, it may be the last from PyPI).
There is no such import in: https://github.com/stared/livelossplot/blob/master/livelossplot/generic_plot.py

from livelossplot.

sebastienlange avatar sebastienlange commented on August 29, 2024

@stared I have the same error.
Even after installing your last commit with pip install git+git://github.com/stared/livelossplot.git@090eb51

from livelossplot.

stared avatar stared commented on August 29, 2024

I did test it locally, and it produces no errors. Are you sure you uninstalled livelossplot before installing it from git? (Since there it is the same version, pip may not recognize that the code is different.)

Regardless, I will make an update shortly.

from livelossplot.

sebastienlange avatar sebastienlange commented on August 29, 2024

Indeed uninstall before install the specific commit from git solves the problem

from livelossplot.

stared avatar stared commented on August 29, 2024

Published 0.3.3 to PyPi, it should work.

from livelossplot.

collinp-spindance avatar collinp-spindance commented on August 29, 2024

@stared Re-installed from PyPi and it is working great for me now. Thank you very much!

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.