edu.cmu.minorthird.classify.algorithms.trees
Class FastRandomTreeLearner
java.lang.Object
edu.cmu.minorthird.classify.BatchClassifierLearner
edu.cmu.minorthird.classify.BatchBinaryClassifierLearner
edu.cmu.minorthird.classify.algorithms.trees.RandomTreeLearner
edu.cmu.minorthird.classify.algorithms.trees.FastRandomTreeLearner
- All Implemented Interfaces:
- BinaryClassifierLearner, ClassifierLearner, java.lang.Cloneable
public class FastRandomTreeLearner
- extends RandomTreeLearner
Implements a fast version of the simplest RandomTree learner possible. Avoids memory allocation
wheverever possible, with resulting speed up of about 30%
- Author:
- Alexander Friedman
Method Summary |
Classifier |
batchTrain(Dataset dataset)
subclasses should use this method to implement a batch supervised learning algorithm. |
Classifier |
batchTrain(java.util.List<Example> dataset,
java.util.Vector<Feature> allFeatures)
|
edu.cmu.minorthird.classify.algorithms.trees.DecisionTree |
batchTrain(java.util.Vector<Example> dataset,
int depth,
java.util.Vector<Feature> unusedFeatures,
int lastFeature,
int from,
int to)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FastRandomTreeLearner
public FastRandomTreeLearner()
batchTrain
public Classifier batchTrain(java.util.List<Example> dataset,
java.util.Vector<Feature> allFeatures)
- Overrides:
batchTrain
in class RandomTreeLearner
batchTrain
public Classifier batchTrain(Dataset dataset)
- Description copied from class:
BatchClassifierLearner
- subclasses should use this method to implement a batch supervised learning algorithm.
- Overrides:
batchTrain
in class RandomTreeLearner
batchTrain
public edu.cmu.minorthird.classify.algorithms.trees.DecisionTree batchTrain(java.util.Vector<Example> dataset,
int depth,
java.util.Vector<Feature> unusedFeatures,
int lastFeature,
int from,
int to)