Code Monkey home page Code Monkey logo

graph_nn's Issues

Is all datasets in /data are supported ?

Hi Dear Author,

This looks a very good implementation in using GCN for graph-level classification (may also called inductive). Besides the sample running you shown in jupyter notebook, are the other datasets are also supported in running? If yes, could I ask which part should modify to change the calling of datasets? Thanks!

About laplacian batch

Hi, many thanks for your code! May I ask the following question regarding laplacian batch?
In github.com/tkipf/gcn, laplacian is normalized by divided by the largest eigen value:

def chebyshev_polynomials(adj, k):
"""Calculate Chebyshev polynomials up to order k. Return a list of sparse matrices (tuple representation)."""
print("Calculating Chebyshev polynomials up to order {}...".format(k))

adj_normalized = normalize_adj(adj)
laplacian = sp.eye(adj.shape[0]) - adj_normalized
largest_eigval, _ = eigsh(laplacian, 1, which='LM')
scaled_laplacian = (2. / largest_eigval[0]) * laplacian - sp.eye(adj.shape[0])

while in the code below:
L = D_hat.view(batch, N, 1) * A_hat * D_hat.view(batch, 1, N)
L is not normalized. May I ask what is the reason for not divided by the eigen value?

Many thanks in advance!

gcn

hi! sir. I am very interested in your code and would like to ask how to load other data,such as Cora data sets. The parameter W in GCN and GCNUNET is not trained in your code

backprop question

Great work in reproducing Graph U-Net. I have one question about backprop in gpool. Why adding a gate operation enable gpool to backprop gradient? Here's a quoting in Graph U-Net.

Notably, the gate operation makes the projection vector p trainable.

I tried to realize the gpool in tensorflow without the gate operation, but it seems that the gradient could not be backproped.

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.