Giter VIP home page Giter VIP logo

Comments (6)

tkipf avatar tkipf commented on July 17, 2024 1

Hi @evanfeinberg, thanks! It was a pleasure meeting you as well. I posted a solution for this problem some time ago in this thread (from the gcn repository): tkipf/gcn#4 . I had an implementation of this some time earlier last year already and if I remember correctly, results were comparable (or sometimes better) when compared to the method by Niepert et al. (ICML 2016) for batch-wise graph classification. So inductive learning with this type of model (contrary to common belief) is indeed very much possible. I haven't put it in the ICLR paper due to time constraints (and spatial constraints).

To re-state the solution over here: multiple graphs can be fed as a single sparse block-diagonal adjacency matrix, and graph-level classification can be done by adding a global "hub" node that is connected to all other nodes (this was suggested already back in 2009 by Scarselli et al.).

from pygcn.

evanfeinberg avatar evanfeinberg commented on July 17, 2024

Thank you for the speedy response, @tkipf ! The workaround of a block diagonal sparse matrix consisting of individual adjacency matrices makes a lot of sense. I will try and report back!

from pygcn.

idansc avatar idansc commented on July 17, 2024

@tkipf thanks for the package, it is really useful.
Will it be possible to share your code that switches a batch of graphs into a diagonal blocks matrix. I found a scipy implementation. But maybe you managed to use a pytorch built-in functions, which will be much more efficient.

from pygcn.

tkipf avatar tkipf commented on July 17, 2024

from pygcn.

malizheng avatar malizheng commented on July 17, 2024

@idansc Hi, can you provide a link address code for the scipy implementation ?

from pygcn.

idansc avatar idansc commented on July 17, 2024

@malizheng see scipy.linalg.block_diag

from pygcn.

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.