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

Embedding node type #4

Closed
matcyr opened this issue Jan 27, 2022 · 1 comment
Closed

Embedding node type #4

matcyr opened this issue Jan 27, 2022 · 1 comment

Comments

@matcyr
Copy link

matcyr commented Jan 27, 2022

Hi,

In the GraphEncoder.add_emb_node_and_feature,
edge_features[:, 0, :, edge_dim] = 1
edge_features[:, :, 0, edge_dim] = 1
I believe these two lines are trying to give the embedding edge a new type right? Why we don't have a similar code for embedding node type like:
node_features[:,0,node_dim] = 1

Thanks,
Yurui

@jrwnter
Copy link
Owner

jrwnter commented Feb 11, 2022

Hi,
good catch. looking in my git history, I might removed this one-hot encoding of the empty node unintentionally. It might be irrelevant for the performance though (no difference for the network if we encode embedding nodes by a zero vector or a one-hot vector). I will check that. Closing for now

@jrwnter jrwnter closed this as completed Feb 11, 2022
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