Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph Classification #14

Closed
MichaelFu1998-create opened this issue Oct 4, 2021 · 2 comments
Closed

Graph Classification #14

MichaelFu1998-create opened this issue Oct 4, 2021 · 2 comments

Comments

@MichaelFu1998-create
Copy link

MichaelFu1998-create commented Oct 4, 2021

Hello there,
First of all, thank you for providing such an amazing work.
I'd like to know how can I leverage graphtransformer on Graph Classification task with textual data, for instance, I first extract nodes and edge info from the text data, given node features and edge information (only one type of edge in my case), the model generate binary targets based on those given features.

Kind Regards
Michael

@vijaydwivedi75
Copy link
Member

Hi @MichaelFu1998-create,

For graph classification, you may follow the codes of ZINC. For ZINC, it predicts 1 label for the value being regressed. You may change the loss functions for your case.

To prepare DGL graphs to be compatible with this code base, you can prepare your data following similar code as that of ZINC, for instance.

@MichaelFu1998-create
Copy link
Author

No problem, really appreciate your clarification 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants