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.17k stars 247 forks source link

GLEE - the sign of embedding values changes for repeat fits #153

Closed jamesvrt closed 9 months ago

jamesvrt commented 1 year ago
    model = GLEE(dimensions=16, seed=42)
    model.fit(G)
    X = model.get_embedding()

Running the above twice produces X which are identical apart from the signs, which are randomly flipped. Is this a bug, given the use of the seed? Expected behavior for me was to produce identical embeddings when seeding.

Great work on this package btw!