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

About weighted graph #28

Open
johnqoe opened this issue Mar 28, 2019 · 6 comments
Open

About weighted graph #28

johnqoe opened this issue Mar 28, 2019 · 6 comments

Comments

@johnqoe
Copy link

johnqoe commented Mar 28, 2019

Hi Thomas!
Thanks for your really great work!
I try to use my weighted graph to train this model.
But I don't know if GAE model can be applied to the weighted graph, If it works, could you give some guidance?

@tkipf
Copy link
Owner

tkipf commented Mar 28, 2019 via email

@johnqoe
Copy link
Author

johnqoe commented Mar 29, 2019

Thans for your reply and guidance. I still have some questions and would like to trouble you for advice.

objective:
The graph in my experiment is a fully connected graph, each edge has a non-zero weight, and each node has two attributes (values greater than 1), I want to get the node representation(embeddings) based on the GAE model,and further do node clustering.

questions:
At the moment, I have finished loading the data, but I am having trouble selecting the edge as a negative sample. I don't know how to select the edge or its weight as a negative sample.
As you suggested above, Is it necessary to set a threshold for the weight of the edge? An edge larger than the threshold is used as a positive sample, instead, an edge smaller than the threshold is used as a negative sample. Could I make out in this way?

I hope that you can give some advice and guidance and look forward to your reply.

The text file in the attachment stores the adjacency matrix used in my experiment.
adj.txt

@tkipf
Copy link
Owner

tkipf commented Mar 29, 2019 via email

@johnqoe
Copy link
Author

johnqoe commented Mar 29, 2019

That would really help me a lot. I'm very grateful.

@sonoftherock
Copy link

Hello, I am also using the GAE model on adjacency matrix data with continuous positive weights. I ran into a problem while training the network to create reconstructions of the original adjacency matrix. For some reason, despite changing the activation function of the InnerProductDecoder from sigmoid to relu, I get reconstructions that contain only binary values of 0 or 1 instead of continuous weights.

Does the current framework support reconstructions of continuously weighted adjacency matrix? Thank you so much for your time.

@tkipf
Copy link
Owner

tkipf commented May 21, 2019 via email

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

3 participants