Home getting error while running this command mahout trainnb -i path_to/train-vectors -el -li path_to/labelindex -o path_to/model -ow -c
Reply: 1

getting error while running this command mahout trainnb -i path_to/train-vectors -el -li path_to/labelindex -o path_to/model -ow -c

shah
1#
shah Published in 2018-02-13 19:12:53Z

see the attached image.I am using mahout locally. I have converted sequence file to sparse vectors and I have also split the set into two sets: a training set and a testing set:

mahout split -i tweets-vectors/tfidf-vectors --trainingOutput train-vectors --testOutput test-vectors --randomSelectionPct 40 --overwrite --sequenceFiles -xm sequential.

getting an error while running this command mahout trainnb -i train-vectors -el -li labelindex -o model -ow -c

akm
2#
akm Reply to 2018-02-13 20:23:14Z

That java.lang.ArrayIndexOutOfBoundsException is usually due to your having the wrong number of fields in a record or vector. This can be caused by improper parsing (wrong delimiter, stray commas in a comma-separated file, etc.) or another issue with the fields you're expecting being in the wrong place.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.331658 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO