Git Product home page Git Product logo

Comments (4)

ChandlerBang avatar ChandlerBang commented on August 16, 2024 1

@jiong-zhu Yeah, that makes sense. I've updated the code as you suggested to avoid confusion. See details in commit 000f86d. Thank you for the advice, Jiong and Mark!

from deeprobust.

ChandlerBang avatar ChandlerBang commented on August 16, 2024

Thanks for the suggestion.

Typically self.predict() is used by self.test() where we do not specify the arguments features and adj. If you hope to pass some features, adj pair into the function, you can do it outside the predict() as follows,

prediction1 = model.predict()
processed_adj = model.truncatedSVD(perturbed_adj, k=20)
# prediction2 is the same as prediction1
prediction2 = model.predict(features, processed_adj)

Similarly we can do that in GCNJaccard. I think I am going to keep the original version of predict(). Thank you again for your suggestions and feel free to let me know if you have other concerns.

from deeprobust.

jiong-zhu avatar jiong-zhu commented on August 16, 2024

@ChandlerBang I see your point, but I would still vote to include an overridden version of the predict function for GCNSVD, just to keep the consistency of interfaces among different models. If kept unchanged, users using the predict() function for GCNSVD may think they are getting predictions on the GCNSVD, but in fact they are getting results from GCN.

from deeprobust.

jiong-zhu avatar jiong-zhu commented on August 16, 2024

Thank you!

from deeprobust.

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.