Is it possible to extract embeddings? #33
-
I am playing around with this library but am curious if it is possible to extract node level or graph-level embeddings? I looked at the methods attached to the The goal here is to perform some clustering on the examples. I very much appreciate any response and would like to expand using his library a lot more and potentially present it to my team once I can wrap my head around it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello. Yes, it should be possible to extract all learnable parameters using the I realized it might be better to give it a more apparent name, so in the new version (0.1.7) that I just released, there is an alias With the |
Beta Was this translation helpful? Give feedback.
Hello. Yes, it should be possible to extract all learnable parameters using the
state_dict
method on your model or evaluator (evaluator.state_dict()
).I realized it might be better to give it a more apparent name, so in the new version (0.1.7) that I just released, there is an alias
parameters
forstate_dict
(evaluator.parameters()
) as well as fixed retrieving parameter values of one specific type - might be good to update your version.With the
state_dict
/parameters
method, you will get a dictionary with keys"weights"
(which contains actual parameters' values) and"weight_names"
.