benedekrozemberczki / karateclub

Karate Club: An API Oriented Open-source Python Framework for Unsupervised Learning on Graphs (CIKM 2020)
https://karateclub.readthedocs.io
GNU General Public License v3.0
2.16k stars 246 forks source link

Inference time #21

Closed zolekode closed 4 years ago

zolekode commented 4 years ago

Hi, for attribute based approaches, is there a way to get embeddings at test time on unseen data ? For example: after embedder.fit(graph, X) , can i input for example embbeder.predict([some unseen input features]) to get embeddings at test time ?

benedekrozemberczki commented 4 years ago

Hi there,

A large number of those methods is transductive - which means that you could not make a consistent API and for certain classes, the predict / score methods should not return anything.

benedekrozemberczki commented 4 years ago

E.g. from the implemented methods only MUSAE is inductive.

zolekode commented 4 years ago

Hi, thanks a lot this helps deffo