openml / openml-java

Java library to interface with OpenML
10 stars 4 forks source link

[Weka] IndexOutOfBoundsException when obtaining folds #15

Open joaquinvanschoren opened 7 years ago

joaquinvanschoren commented 7 years ago

From @DraXus on February 14, 2015 15:17

The following error is shown when trying to run task 17 in Weka 3.7.12 using Naive Bayes as classifier.

[14-02-2015 13:41:27] [INFO] [ARFF Cache] Stored dataset 17 to cache. [14-02-2015 13:41:27] [INFO] [ARFF Cache] Stored splits 17 to cache. [14-02-2015 13:41:27] [INFO] [Splits] Obtaining folds for Task 17 (bridges) with weka.classifiers.bayes.NaiveBayes - Repeat 0 java.lang.IndexOutOfBoundsException: Index: 107, Size: 107 java.util.ArrayList.rangeCheck(ArrayList.java:635) java.util.ArrayList.get(ArrayList.java:411) weka.core.Instances.instance(Instances.java:768) org.openml.weka.experiment.TaskResultProducer.doRun(TaskResultProducer.java:248) org.openml.weka.experiment.TaskBasedExperiment.nextIteration(TaskBasedExperiment.java:173) org.openml.weka.gui.OpenmlRunPanel$ExperimentRunner.run(OpenmlRunPanel.java:197)

at java.util.ArrayList.rangeCheck(ArrayList.java:635)
at java.util.ArrayList.get(ArrayList.java:411)
at weka.core.Instances.instance(Instances.java:768)
at org.openml.weka.experiment.TaskResultProducer.doRun(TaskResultProducer.java:248)
at org.openml.weka.experiment.TaskBasedExperiment.nextIteration(TaskBasedExperiment.java:173)
at org.openml.weka.gui.OpenmlRunPanel$ExperimentRunner.run(OpenmlRunPanel.java:197)

Copied from original issue: openml/OpenML#172

joaquinvanschoren commented 7 years ago

Hi Manuel,

How did you run weka? Did you use the standalone version of the website of did you use the package manager to install the plugin?

@Jan: Can we now remove the standalone version from the website and use the package from now on?

Thanks, Joaquin

On Sat Feb 14 2015 at 4:17:56 PM Manuel Martín notifications@github.com wrote:

[14-02-2015 13:41:27] [INFO] [ARFF Cache] Stored dataset 17 to cache. [14-02-2015 13:41:27] [INFO] [ARFF Cache] Stored splits 17 to cache. [14-02-2015 13:41:27] [INFO] [Splits] Obtaining folds for Task 17 (bridges) with weka.classifiers.bayes.NaiveBayes - Repeat 0 java.lang.IndexOutOfBoundsException: Index: 107, Size: 107 java.util.ArrayList.rangeCheck(ArrayList.java:635) java.util.ArrayList.get(ArrayList.java:411) weka.core.Instances.instance(Instances.java:768)

org.openml.weka.experiment.TaskResultProducer.doRun(TaskResultProducer.java:248)

org.openml.weka.experiment.TaskBasedExperiment.nextIteration(TaskBasedExperiment.java:173)

org.openml.weka.gui.OpenmlRunPanel$ExperimentRunner.run(OpenmlRunPanel.java:197)

at java.util.ArrayList.rangeCheck(ArrayList.java:635) at java.util.ArrayList.get(ArrayList.java:411) at weka.core.Instances.instance(Instances.java:768) at org.openml.weka.experiment.TaskResultProducer.doRun(TaskResultProducer.java:248) at org.openml.weka.experiment.TaskBasedExperiment.nextIteration(TaskBasedExperiment.java:173) at org.openml.weka.gui.OpenmlRunPanel$ExperimentRunner.run(OpenmlRunPanel.java:197)

— Reply to this email directly or view it on GitHub https://github.com/openml/OpenML/issues/172.

joaquinvanschoren commented 7 years ago

@Manuel: did you try clearing the cache? We did a lot of changes in the caching mechanism recently.

The cache is in a .openml folder in your home dir.

Cheers, Joaquin

On Sun Feb 15 2015 at 8:39:20 AM Joaquin Vanschoren j.vanschoren@tue.nl wrote:

Hi Manuel,

How did you run weka? Did you use the standalone version of the website of did you use the package manager to install the plugin?

@Jan: Can we now remove the standalone version from the website and use the package from now on?

Thanks, Joaquin

On Sat Feb 14 2015 at 4:17:56 PM Manuel Martín notifications@github.com wrote:

[14-02-2015 13:41:27] [INFO] [ARFF Cache] Stored dataset 17 to cache. [14-02-2015 13:41:27] [INFO] [ARFF Cache] Stored splits 17 to cache. [14-02-2015 13:41:27] [INFO] [Splits] Obtaining folds for Task 17 (bridges) with weka.classifiers.bayes.NaiveBayes - Repeat 0 java.lang.IndexOutOfBoundsException: Index: 107, Size: 107 java.util.ArrayList.rangeCheck(ArrayList.java:635) java.util.ArrayList.get(ArrayList.java:411) weka.core.Instances.instance(Instances.java:768) org.openml.weka.experiment.TaskResultProducer.doRun( TaskResultProducer.java:248) org.openml.weka.experiment.TaskBasedExperiment.nextIteration( TaskBasedExperiment.java:173) org.openml.weka.gui.OpenmlRunPanel$ExperimentRunner.run( OpenmlRunPanel.java:197)

at java.util.ArrayList.rangeCheck(ArrayList.java:635) at java.util.ArrayList.get(ArrayList.java:411) at weka.core.Instances.instance(Instances.java:768) at org.openml.weka.experiment.TaskResultProducer.doRun(TaskResultProducer.java:248) at org.openml.weka.experiment.TaskBasedExperiment.nextIteration(TaskBasedExperiment.java:173) at org.openml.weka.gui.OpenmlRunPanel$ExperimentRunner.run(OpenmlRunPanel.java:197)

— Reply to this email directly or view it on GitHub https://github.com/openml/OpenML/issues/172.

joaquinvanschoren commented 7 years ago

From @DraXus on February 15, 2015 15:18

It was a clean standalone Weka version and then I installed the OpenML plugin from the package repository. I only got that error with tasks using dataset 17 so far. I tried to clean the cache but it happened again.

joaquinvanschoren commented 7 years ago

Interesting. Jan, can you take a look? On Sun 15 Feb 2015 at 16:18, Manuel Martín notifications@github.com wrote:

It was a clean standalone Weka version and then I installed the OpenML plugin from the package repository. I only got that error with tasks using dataset 17 so far. I tried to clean the cache but it happened again.

— Reply to this email directly or view it on GitHub https://github.com/openml/OpenML/issues/172#issuecomment-74421324.

joaquinvanschoren commented 7 years ago

From @DraXus on February 15, 2015 17:10

I mean, it's not urgent. I will use other datasets for the demo, but just take a look when you can :)

joaquinvanschoren commented 7 years ago

We have released several new versions of the apiconnector in the mean time. Please check if this is still an issue.