Tuesday, 15 September 2015

Exception in thread "main" java.lang.IllegalArgumentException: Wrong number of attributes in the string + Mahout -



Exception in thread "main" java.lang.IllegalArgumentException: Wrong number of attributes in the string + Mahout -

i trying create file descriptor using command:

$ mahout_home/core/target/mahout-core--job.jar org.apache.mahout.classifier.df.tools.describe -p testdata/kddtrain+.arff -f testdata/kddtrain+.info -d n 3 c 2 n c 4 n c 8 n 2 c 19 n l

from link: https://mahout.apache.org/users/classification/partial-implementation.html on info file whatever file take , alter number of attributes string n 3 c 2 n c 4 n c 8 n 2 c 19 n l .

i next exception:

exception in thread "main" java.lang.illegalargumentexception: wrong number of attributes in string

please help!

there couple of reasons might error that...

wrong descriptor: putting sake of completeness. must have checked 1 out. have given wrong descriptor data. re-check number , type of columns , give them correctly descriptor. bad separator: re-check delimiter used in data. might create trouble. may info have has wrongly placed delimiter in records. create sure of that. special characters: in few experiments, have noticed mahout not enjoy if there special characters, or info consists of characters of language other english language (unless of course, tweak around code). create sure have way of handling them, , should go.

anyways these fighting can create descriptor of data. atb.

mahout

No comments:

Post a Comment