phanein / deepwalk

DeepWalk - Deep Learning for Graphs
http://www.perozzi.net/projects/deepwalk/
Other
2.67k stars 828 forks source link

How to assess edgelist by using scoring.py? #124

Open a962097364 opened 3 years ago

a962097364 commented 3 years ago

Hello, thank you for reading my question. I use a edgelist file and after training, its embedding file has generated. I want to use this embedding file and scoring.py to do the assessment, but scoring.py can only use mat file, if I input edgelist file as the "network" parameter, some error comes.

I write these to run:

python example_graphs/scoring.py --emb example_graphs/myedgelist.embeddings --network example_graphs/myedgelist.edgelist --num-shuffle 10 --all

However, there is an error appears:

raise ValueError('Unknown mat file type, version %s, %s' % ret) ValueError: Unknown mat file type, version 51, 50

So, I want to ask, how to assess edgelist files by using scoring.py? I need to transform the file to mat file or there are some different way to input?

Thank you.