deepwalk代码中的错误修改

在运行论文源码的过程中遇到这样的错误

C:\Users\LRT\Anaconda3\python.exe C:/Users/LRT/PycharmProjects/deepwalk-master/deepwalk/__main__.py
C:\Users\LRT\Anaconda3\lib\site-packages\gensim\utils.py:862: UserWarning: detected Windows; aliasing chunkize to chunkize_serial
  warnings.warn("detected Windows; aliasing chunkize to chunkize_serial")
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: the following arguments are required: --input, --output

Process finished with exit code 2

main.py中查找发现如下代码

 parser.add_argument('--input', nargs='?', required=True,
                      help='Input graph file')
  parser.add_argument('--output', required=True,
                      help='Output representation file')

根据本地环境修改为


你可能感兴趣的:(deepwalk代码中的错误修改)