I have a trained dataset with 125 records. I’m going to classify new instance using NaiveBayesUpdatable. but when I run naiveBayes (under windows, using weka 3.4), I get the
following error :
java.lang.ArrayIndexOutOfBoundsException: 126
at weka.estimators.DiscreteEstimator.getProbability(Unknown Source)
at weka.classifiers.bayes.NaiveBayes.distributionForInstance(Unknown Source)
at weka.classifiers.Classifier.classifyInstance(Unknown Source)
at Classifier.NaiveBayes.classifyInstance(NaiveBayes.java:190)
at Classifier.NaiveBayes.classifyWebPage(NaiveBayes.java:106)
when I run the J48 classifier, it runs with no problems.
thanks for any help\ideas.
I think i found the solution. i added the record to dataset and build classifier again. then I could classify it with no problem. but I don’t know why j48 doesn’t need to have record in it’s dataset.