AnacletoLAB / grape

🍇 GRAPE is a Rust/Python Graph Representation Learning library for Predictions and Evaluations
MIT License
502 stars 38 forks source link

How to get embedding per node or edge #61

Open anonimoustt opened 1 month ago

anonimoustt commented 1 month ago

Hi,

I was trying TransE embedding of Grape, and I am curious how to get embedding of each node or relation as a vector. For example, Protein 1 enables Protein 2. In this triple Protein 1 is subject, Protein 2 is object, and enable is a relation. Now how to get the embedding separately for Protein 1, enables, and Protein 2 using Grape?

Thanks for your time and help.