ArrayIndexOutOfBoundsException on classifyInstance, please help
I'm getting a java.lang.ArrayIndexOutOfBoundsException: 3
at this line of my code: classifier.classifyInstance(unlabeled.instance(20) );
I've a training data set train.arff and a dataset to label test.arff
Since I'm quite stuck, and I don't understand where the issue is, I have some questions:
- unlabeled.arff is supposed to have the class attributes ? Or should I remove it from the instances ?
- My test.arff is exactly in the same format of training.arff. Same relation, etc... Should something be different instead ?
- I'm applying to both files the same filter. So I really dunno what's wrong here. Please check the code for more details: #1726522 - Pastie
and these are the files:
train.arff #1726525 - Pastie
test.arff #1726527 - Pastie
I'm quite stuck.