Comments (6)
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.
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.
@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.
from pygcn.
@idansc Hi, can you provide a link address code for the scipy implementation ?
from pygcn.
@malizheng see scipy.linalg.block_diag
from pygcn.
Related Issues (20)
- specifying modes train, validation and test HOT 1
- Where is Filter parameters in the code? HOT 1
- Hi, does pandas make the data preprocessing more simple?
- Normalization of features, batch-wise training, feature extraction
- question about the adjacency matrix HOT 2
- citeseer dataset seems doesnot work HOT 2
- Difference between TF and Pytorch version code HOT 5
- In tensor flow code you used early stopping,isn't it needed in pytorch???
- In `utils.py` line 36, wouldnt `adj = adj + (adj.T > adj)` also work? HOT 2
- Invoice node classification / meta-data extraction / single prediction with trained model
- How to do a semi-supervised learning? HOT 6
- Predicting node degree
- Question About fastmode
- Error: 'pybind11' must be installed before running the build.
- transform to other scope dataset
- Why do row normalization instead of column normalization? HOT 2
- About the dataset split HOT 3
- citeseer dataset
- Cora dataset attributes
- accuracy in the experimental results HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygcn.