edu.uci.jforests.learning.trees
Class TreeLearner
- java.lang.Object
-
- edu.uci.jforests.learning.LearningModule
-
- edu.uci.jforests.learning.trees.TreeLearner
-
- Direct Known Subclasses:
- DecisionTreeLearner, RegressionTreeLearner
public abstract class TreeLearner extends LearningModule
-
-
Constructor Summary
Constructors Constructor and Description TreeLearner(java.lang.String algorithmName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetValidationMeasurement()voidinit(Dataset dataset, ConfigHolder configHolder, int maxTrainInstances)Ensemblelearn(Sample trainSet, Sample validSet)voidsetRnd()-
Methods inherited from class edu.uci.jforests.learning.LearningModule
postProcess, printTrainAndValidMeasurement, printValidMeasurement, setAlgorithmName, setParentModule, setProgressListener, setSubModule, setTreeWeight
-
-
-
-
Method Detail
-
init
public void init(Dataset dataset, ConfigHolder configHolder, int maxTrainInstances) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setRnd
public void setRnd()
-
learn
public Ensemble learn(Sample trainSet, Sample validSet) throws java.lang.Exception
- Specified by:
learnin classLearningModule- Throws:
java.lang.Exception
-
getValidationMeasurement
public double getValidationMeasurement() throws java.lang.Exception- Specified by:
getValidationMeasurementin classLearningModule- Throws:
java.lang.Exception
-
-
DMelt 3.0 © DataMelt by jWork.ORG