Using Pytorch Frame in assigning node features #8376
Unanswered
parsisoftware
asked this question in
Q&A
Replies: 1 comment 3 replies
-
We are working on examples and some tutorials right now. The current idea is to store |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Can you please guide me how to use the PyTorch frame encodings (https://github.com/pyg-team/pytorch-frame/tree/master) for the node features while loading the data from csv using the following link:
https://pytorch-geometric.readthedocs.io/en/latest/tutorial/load_csv.html
Can I simply replace the encoding classes with the one defined in the above link like the following:
from torch_frame import stype
from torch_frame.nn import (
EmbeddingEncoder,
FTTransformer,
LinearEmbeddingEncoder,
LinearEncoder,
)
movie_x, movie_mapping = load_node_csv(
movie_path, index_col='movieId', encoders={
'title': LinearEmbeddingEncoder(),
'genres': EmbeddingEncoder()
})
Beta Was this translation helpful? Give feedback.
All reactions