pytorch_geometric icon indicating copy to clipboard operation
pytorch_geometric copied to clipboard

Jumping Knowledge Setting Last vs None

Open Bobowner opened this issue 2 years ago • 1 comments

📚 Describe the documentation issue

It is unclear what the difference between None and last for the parameter jk is: https://pytorch-geometric.readthedocs.io/en/latest/generated/torch_geometric.nn.models.GCN.html

since the JK Paper only describes cat, lstm, and max.

Suggest a potential alternative/fix

No response

Bobowner avatar Feb 07 '24 13:02 Bobowner

Sorry for the confusion. If jk Is specified, the model will additionally apply a final linear transformation to transform node embeddings to the expected output feature dimensionality. As such, jk="last" will perform a final linear transformation, while jk=None will not.

rusty1s avatar Feb 07 '24 15:02 rusty1s