deepwalk icon indicating copy to clipboard operation
deepwalk copied to clipboard

Some questions when I run code

Open Shodowelf opened this issue 5 years ago • 2 comments

Hello,sir When I run you code I meet some questions , can you tell me how to solve it ? When I run main.py .My question is as follow: /home/zhen/HERec-master/venv/bin/python /home/zhen/deep/deepwalk-master/deepwalk/main.py Traceback (most recent call last): File "/home/zhen/deep/deepwalk-master/deepwalk/main.py", line 13, in from . import graph ValueError: Attempted relative import in non-package I don't no what package is need. when I run walks.py .My question is as follow: Traceback (most recent call last): File "/home/zhen/deep/deepwalk-master/deepwalk/walks.py", line 12, in from . import graph ValueError: Attempted relative import in non-package The same question. Thank you.

Shodowelf avatar May 29 '19 02:05 Shodowelf

After my debug my question change it. usage: deepwalk [-h] [--debug] [--format FORMAT] --input [INPUT] [-l LOG] [--matfile-variable-name MATFILE_VARIABLE_NAME] [--max-memory-data-size MAX_MEMORY_DATA_SIZE] [--number-walks NUMBER_WALKS] --output OUTPUT [--representation-size REPRESENTATION_SIZE] [--seed SEED] [--undirected UNDIRECTED] [--vertex-freq-degree] [--walk-length WALK_LENGTH] [--window-size WINDOW_SIZE] [--workers WORKERS] deepwalk: error: argument --input is required what can I do to solve it?

Shodowelf avatar May 29 '19 08:05 Shodowelf

If you take a look at the README, there are some arguments to be specified -- what if you run deepwalk --input example_graphs/karate.adjlist --output karate.embeddings?

GTmac avatar May 30 '19 01:05 GTmac