Results 1 to 3 of 3
- 03-28-2011, 03:15 PM #1
Member
- Join Date
- Aug 2008
- Posts
- 46
- Rep Power
- 0
ArrayIndexOutOfBoundsException on classifyInstance, please help
hi,
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
thanks
I'm quite stuck.
thanks
- 03-28-2011, 04:40 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Post the relevant code...most people won't click on downlaods.
Then show us which line the error is occurring on.
I have no idea what an arff file is, so a description of what the code you post is supposed to be doing might help.
- 03-28-2011, 04:42 PM #3
Member
- Join Date
- Aug 2008
- Posts
- 46
- Rep Power
- 0
Similar Threads
-
ArrayIndexOutOfBoundsException
By er1c550n20 in forum New To JavaReplies: 2Last Post: 04-07-2010, 06:50 PM -
ArrayIndexOutOfBoundsException
By Corey in forum New To JavaReplies: 5Last Post: 02-02-2010, 01:25 AM -
ArrayIndexOutOfBoundsException
By flaskvacuum in forum New To JavaReplies: 6Last Post: 07-14-2009, 05:36 PM -
ArrayIndexOutofBoundsException help
By filly444 in forum New To JavaReplies: 9Last Post: 09-03-2008, 05:16 PM -
ArrayIndexOutOfBoundsException
By daredavil82 in forum New To JavaReplies: 2Last Post: 12-14-2007, 09:29 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks