Giter Site home page Giter Site logo

Comments (5)

BenjaminLarrousse avatar BenjaminLarrousse commented on May 28, 2024

Hello,

Same here with python 2.7. Is there any workaround ?

from gem.

SkBlaz avatar SkBlaz commented on May 28, 2024

I fixed it by manually setting the dictionary of parameters, yet the problem given in example seems to remain.

from gem.

palash1992 avatar palash1992 commented on May 28, 2024

Hi,
Sorry for the delay in reply. I have modified the readme code to address the changes in the code. Now you need to specify the name of each input argument i.e. GraphFactorization(2, 100000, 110**-4, 1.0) has changed to GraphFactorization(d=2, max_iter=100000, eta=110**-4, regu=1.0)

from gem.

BenjaminLarrousse avatar BenjaminLarrousse commented on May 28, 2024

Ok, thanks @palash1992 . I have this error now:


ValueError Traceback (most recent call last)
in ()
41 print (embedding._method_name+':\n\tTraining time: %f' % (time() - t1))
42 # Evaluate on graph reconstruction
---> 43 MAP, prec_curv = gr.evaluateStaticGraphReconstruction(G, embedding, Y, None)
44 # Visualize
45 viz.plot_embedding2D(embedding.get_embedding(), di_graph=G, node_colors=None)

ValueError: too many values to unpack

from gem.

palash1992 avatar palash1992 commented on May 28, 2024

It has been fixed. The evaluation function now also returns error of reconstruction and baseline error. Thus, MAP, prec_curv = gr.evaluateStaticGraphReconstruction(G, embedding, Y, None) should now be MAP, prec_curv, err, err_baseline = gr.evaluateStaticGraphReconstruction(G, embedding, Y, None)

from gem.

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.