weka.classifiers.trees.lmt
Class ResidualModelSelection

java.lang.Object
  extended byweka.classifiers.trees.j48.ModelSelection
      extended byweka.classifiers.trees.lmt.ResidualModelSelection
All Implemented Interfaces:
java.io.Serializable

public class ResidualModelSelection
extends ModelSelection

Helper class for logistic model trees (weka.classifiers.trees.lmt.LMT) to implement the splitting criterion based on residuals.

Version:
$Revision: 1.1 $
Author:
Niels Landwehr
See Also:
Serialized Form

Field Summary
protected  double m_minInfoGain
          Minimum information gain for split
protected  int m_minNumInstances
          Minimum number of instances for leaves
 
Constructor Summary
ResidualModelSelection(int minNumInstances)
          Constructor to create ResidualModelSelection object.
 
Method Summary
 void cleanup()
          Method not in use
 ClassifierSplitModel selectModel(Instances train)
          Method not in use
 ClassifierSplitModel selectModel(Instances data, double[][] dataZs, double[][] dataWs)
          Selects split based on residuals for the given dataset.
 ClassifierSplitModel selectModel(Instances train, Instances test)
          Method not in use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_minNumInstances

protected int m_minNumInstances
Minimum number of instances for leaves


m_minInfoGain

protected double m_minInfoGain
Minimum information gain for split

Constructor Detail

ResidualModelSelection

public ResidualModelSelection(int minNumInstances)
Constructor to create ResidualModelSelection object.

Parameters:
minNumInstances - minimum number of instances for leaves
Method Detail

cleanup

public void cleanup()
Method not in use


selectModel

public final ClassifierSplitModel selectModel(Instances data,
                                              double[][] dataZs,
                                              double[][] dataWs)
                                       throws java.lang.Exception
Selects split based on residuals for the given dataset.

Throws:
java.lang.Exception

selectModel

public final ClassifierSplitModel selectModel(Instances train)
Method not in use

Specified by:
selectModel in class ModelSelection

selectModel

public final ClassifierSplitModel selectModel(Instances train,
                                              Instances test)
Method not in use

Overrides:
selectModel in class ModelSelection