tkipf / gcn

Implementation of Graph Convolutional Networks in TensorFlow
MIT License
7.15k stars 2k forks source link

batch-wise classification of multiple graph instances #123

Open Atif-ub opened 5 years ago

Atif-ub commented 5 years ago

@tkipf I have read the Issue #4 , there you discussed approximatly the same issue.

I want to use gcn of banking related data and want to train it on graph patterns.. But I am stuck in how should I do it. especially how to create tha Adj matrix for multiple Graph instances. and its feature matix. I tried to search this topic alot on search engines but there is no anwer found any where.

can you help me out , do you have any code where this multiple graph instance problem is considered ?

Atif

tkipf commented 5 years ago

I recommend having a look at https://www.dgl.ai — their framework supports automatic batching for graph classification.

On Fri 28. Jun 2019 at 16:03 aubutt notifications@github.com wrote:

I have read the Issue #4 https://github.com/tkipf/gcn/issues/4 , there you discussed approximatly the same issue.

I want to use gcn of banking related data and want to train it on graph patterns.. But I am stuck in how should I do it. especially how to create tha Adj matrix for multiple Graph instances. and its feature matix. I tried to search this topic alot on search engines but there is no anwer found any where.

can you help me out , do you have any code where this multiple graph instance problem is considered ?

Atif

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tkipf/gcn/issues/123?email_source=notifications&email_token=ABYBYYACI2R7XWK7PQBD2T3P4YK2RA5CNFSM4H4FU4IKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G4KKXCQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYBYYHR7DCBQYE36PVE6GTP4YK2RANCNFSM4H4FU4IA .

Atif-ub commented 5 years ago

ok Thanks I will definalty have a look into it. But this pictures appealing alot.. How your framework support this.. is there any example ? image

leichen2018 commented 5 years ago

This may help. https://github.com/weihua916/powerful-gnns/blob/ef085170f73da85639f0d18bbf0800e0d9ff2e76/models/graphcnn.py#L86