Giter Site home page Giter Site logo

dsgiitr / graph_nets Goto Github PK

View Code? Open in Web Editor NEW
1.1K 37.0 223.0 12.23 MB

PyTorch Implementation and Explanation of Graph Representation Learning papers: DeepWalk, GCN, GraphSAGE, ChebNet & GAT.

Jupyter Notebook 93.95% Python 6.05%
graph-representation-learning graph-convolutional-networks graph-attention-networks graph-embedding deepwalk node-embedding graph-sage chebyshev-polynomials pytorch

graph_nets's Issues

Question: GCN pytorch implementation

Thanks a lot for the code. Found it via your blog post about GCNs.

I see Kipf used Laplace symmetric normalisation - as you wrote also here: https://dsgiitr.com/blogs/gcn/

But I don't understand, why the diagonal degree matrix is produced using A instead of A_hat:

        self.A_hat = A+torch.eye(A.size(0))
        self.D     = torch.diag(torch.sum(A,1))  #<< should this not be self.A_hat?
        self.D     = self.D.inverse().sqrt()

Problems about graphsage

In GraphSage part, just one hop neighbors were used in enc1 and enc2.
Maybe , using 2 hop neighbors in enc1 and 1 hop neighbors in enc2 is more proper.
Just a little suggestion.

ChebNet dataset

I saw the code has this code sentence
image
how can i get this datasets folder

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.