edu.cmu.minorthird.classify.algorithms.trees
Class DecisionTreeLearner
java.lang.Object
edu.cmu.minorthird.classify.BatchClassifierLearner
edu.cmu.minorthird.classify.BatchBinaryClassifierLearner
edu.cmu.minorthird.classify.algorithms.trees.DecisionTreeLearner
- All Implemented Interfaces:
- BinaryClassifierLearner, ClassifierLearner, java.lang.Cloneable
- Direct Known Subclasses:
- Recommended.DecisionTreeLearner
public class DecisionTreeLearner
- extends BatchBinaryClassifierLearner
A simple decision tree learning algorithm.
- Author:
- William Cohen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DecisionTreeLearner
public DecisionTreeLearner(int maxDepth,
int minSplitCount)
- Parameters:
maxDepth
- maximum depth of the treeminSplitCount
- minimum number of examples to have before considering a split
DecisionTreeLearner
public DecisionTreeLearner()
getMaxDepth
public int getMaxDepth()
setMaxDepth
public void setMaxDepth(int d)
getMinSplitCount
public int getMinSplitCount()
setMinSplitCount
public void setMinSplitCount(int c)
batchTrain
public Classifier batchTrain(Dataset dataset)
- Description copied from class:
BatchClassifierLearner
- subclasses should use this method to implement a batch supervised learning algorithm.
- Specified by:
batchTrain
in class BatchClassifierLearner