Uploaded image for project: 'Pentaho Data Mining - Weka'
  1. Pentaho Data Mining - Weka
  2. DATAMINING-780

BayesNet crashes with many starved categories

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Severity: Unknown
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Story Points:
      0
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Steps to Reproduce:
      Hide
      • Download this data
      • Train a BayesNet with the following parameters: 
        -Q weka.classifiers.bayes.net.search.local.K2 -E weka.classifiers.bayes.net.estimate.SimpleEstimator

      (Command line call: 

      java -Xmx1524m -classpath weka.jar weka.classifiers.bayes.BayesNet -Q weka.classifiers.bayes.net.search.local.K2 -E weka.classifiers.bayes.net.estimate.SimpleEstimator -t StarvedMany.arff

      Show
      Download this data Train a BayesNet with the following parameters:  -Q weka.classifiers.bayes.net.search.local.K2 -E weka.classifiers.bayes.net.estimate.SimpleEstimator (Command line call:  java -Xmx1524m -classpath weka.jar weka.classifiers.bayes.BayesNet -Q weka.classifiers.bayes.net.search.local.K2 -E weka.classifiers.bayes.net.estimate.SimpleEstimator -t StarvedMany.arff

      Description

      The BayesNet crashes with a NegativeArrayIndex exception, likely due to an integer overflow for these parameters. The reason is likely the local K2 search, because the bug vanishes if this is used with -P 1. 

       

      Here is my stacktrace:

      java.lang.NegativeArraySizeException at weka.classifiers.bayes.net.search.local.LocalScoreSearchAlgorithm.calcNodeScoreADTree(LocalScoreSearchAlgorithm.java:230) at weka.classifiers.bayes.net.search.local.LocalScoreSearchAlgorithm.calcNodeScore(LocalScoreSearchAlgorithm.java:180) at weka.classifiers.bayes.net.search.local.LocalScoreSearchAlgorithm.calcScoreWithExtraParent(LocalScoreSearchAlgorithm.java:498) at weka.classifiers.bayes.net.search.local.K2.search(K2.java:219) at weka.classifiers.bayes.net.search.SearchAlgorithm.buildStructure(SearchAlgorithm.java:327) at weka.classifiers.bayes.net.search.local.LocalScoreSearchAlgorithm.buildStructure(LocalScoreSearchAlgorithm.java:169) at weka.classifiers.bayes.BayesNet.buildStructure(BayesNet.java:339) at weka.classifiers.bayes.BayesNet.buildClassifier(BayesNet.java:227) at weka.classifiers.evaluation.Evaluation.evaluateModel(Evaluation.java:1623) at weka.classifiers.Evaluation.evaluateModel(Evaluation.java:668) at weka.classifiers.AbstractClassifier.runClassifier(AbstractClassifier.java:141) at weka.classifiers.bayes.BayesNet.main(BayesNet.java:941)
      

        Attachments

          Activity

            People

            Assignee:
            project admin Triage
            Reporter:
            sherbold Steffen Herbold
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: