镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[Weka] IndexOutOfBoundsException when obtaining folds #15

Open

Description

@joaquinvanschoren

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

Activity

  1. joaquinvanschoren commented on Oct 20, 2017

    @joaquinvanschoren
    ContributorAuthor

    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
    openml/OpenML#172.

  2. joaquinvanschoren commented on Oct 20, 2017

    @joaquinvanschoren
    ContributorAuthor

    @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
    openml/OpenML#172.

  3. joaquinvanschoren commented on Oct 20, 2017

    @joaquinvanschoren
    ContributorAuthor

    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.

  4. joaquinvanschoren commented on Oct 20, 2017

    @joaquinvanschoren
    ContributorAuthor

    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
    openml/OpenML#172 (comment).

  5. joaquinvanschoren commented on Oct 20, 2017

    @joaquinvanschoren
    ContributorAuthor

    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 :)

  6. joaquinvanschoren commented on Oct 20, 2017

    @joaquinvanschoren
    ContributorAuthor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions