net.sf.bddbddb.order
Class BaggedId3

java.lang.Object
  extended by weka.classifiers.Classifier
      extended by net.sf.bddbddb.order.ClassProbabilityEstimator
          extended by net.sf.bddbddb.order.BaggedId3
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, weka.core.OptionHandler

public class BaggedId3
extends ClassProbabilityEstimator

Author:
Administrator TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
See Also:
Serialized Form

Field Summary
static int NUM_TREES
           
 
Fields inherited from class weka.classifiers.Classifier
m_Debug
 
Constructor Summary
BaggedId3()
           
 
Method Summary
 void buildClassifier(weka.core.Instances data)
           
 double classifyInstance(weka.core.Instance instance)
           
 double classProbability(weka.core.Instance instance, double targetClass)
           
 double classVariance(weka.core.Instance instance, double targetClass)
           
 double[] distributionForInstance(weka.core.Instance instance)
           
 weka.core.Instances getData()
           
 void setWeight(int index, double value)
           
 void setWeights(double[] weights)
           
 double[] varianceForInstance(weka.core.Instance instance)
           
 
Methods inherited from class weka.classifiers.Classifier
debugTipText, forName, getDebug, getOptions, listOptions, makeCopies, setDebug, setOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUM_TREES

public static final int NUM_TREES
See Also:
Constant Field Values
Constructor Detail

BaggedId3

public BaggedId3()
Method Detail

setWeights

public void setWeights(double[] weights)

setWeight

public void setWeight(int index,
                      double value)

buildClassifier

public void buildClassifier(weka.core.Instances data)
                     throws java.lang.Exception
Specified by:
buildClassifier in class weka.classifiers.Classifier
Throws:
java.lang.Exception

classifyInstance

public double classifyInstance(weka.core.Instance instance)
Overrides:
classifyInstance in class weka.classifiers.Classifier

classProbability

public double classProbability(weka.core.Instance instance,
                               double targetClass)
Specified by:
classProbability in class ClassProbabilityEstimator

distributionForInstance

public double[] distributionForInstance(weka.core.Instance instance)
                                 throws weka.core.NoSupportForMissingValuesException
Overrides:
distributionForInstance in class weka.classifiers.Classifier
Throws:
weka.core.NoSupportForMissingValuesException

classVariance

public double classVariance(weka.core.Instance instance,
                            double targetClass)
Specified by:
classVariance in class ClassProbabilityEstimator

varianceForInstance

public double[] varianceForInstance(weka.core.Instance instance)
                             throws weka.core.NoSupportForMissingValuesException
Throws:
weka.core.NoSupportForMissingValuesException

getData

public weka.core.Instances getData()
Specified by:
getData in class ClassProbabilityEstimator


Copyright © 2004-2008 Stanford SUIF Compiler Group. All Rights Reserved.