Pergunta

I'm learning about algorithms "trending topic", I have read the article by Stanislav Nikolov, Trend or No Trend: A Novel Nonparametric Method for Classifying Time Series.

I tried downloading his project in here. When I tried to run, an error occurs:

hduser@master:~/rumor$ ./test_detection.py 
Traceback (most recent call last):
  File "./test_detection.py", line 6, in <module>
    ts_viral = rumor.parsing.parse_timeseries('data/' + sys.argv[1])
IndexError: list index out of range

I intend to run on a Hadoop cluster. What do I do?

Foi útil?

Solução

It means your program needs some command line parameters. sys.argv contains the list of parameters, and since you did not give any, there was a "index out of range" error. Read the manual carefully.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top