I'm new in Apache Mahout. I want to classify a .csv file The columns of this file are id,AAAA,.....TTTT,species and values of each record are ebolavirus1,123,434,34,34,322,1,1,333,4,555,zaire. I want to classify species(ex zaire,sudan,tai forest ebolavirus.
When I try to run my code, it gives me the following exception :
Error: java.lang.IllegalArgumentException: Wrong numLabels: 0. Must be > 0!
I follow these steps :
./mahout seqdirectory --input input/labelOutput.csv --output target/out
./mahout seq2sparse --input target/out --output target/vectors
./mahout trainnb -i target/vectors/tfidf-vectors -o target/final --li target/labelIndex
Can you help me?
请检查您的csv文件是否有空行。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.