edu.uci.jforests.learning.bagging
Class Bagging
- java.lang.Object
-
- edu.uci.jforests.learning.LearningModule
-
- edu.uci.jforests.learning.bagging.Bagging
-
- Direct Known Subclasses:
- RandomForest
public abstract class Bagging extends LearningModule
-
-
Constructor Summary
Constructors Constructor and Description Bagging()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetValidationMeasurement()voidinit(ConfigHolder configHolder, int maxNumTrainInstances, int maxNumValidInstances, EvaluationMetric evaluationMetric)Ensemblelearn(Sample trainSet, Sample validSet)voidpostProcess(Tree tree, TreeLeafInstances treeLeafInstances)-
Methods inherited from class edu.uci.jforests.learning.LearningModule
printTrainAndValidMeasurement, printValidMeasurement, setAlgorithmName, setParentModule, setProgressListener, setSubModule, setTreeWeight
-
-
-
-
Method Detail
-
init
public void init(ConfigHolder configHolder, int maxNumTrainInstances, int maxNumValidInstances, EvaluationMetric evaluationMetric) throws java.lang.Exception
- Throws:
java.lang.Exception
-
learn
public Ensemble learn(Sample trainSet, Sample validSet) throws java.lang.Exception
- Specified by:
learnin classLearningModule- Throws:
java.lang.Exception
-
postProcess
public void postProcess(Tree tree, TreeLeafInstances treeLeafInstances)
- Overrides:
postProcessin classLearningModule
-
getValidationMeasurement
public double getValidationMeasurement() throws java.lang.Exception- Specified by:
getValidationMeasurementin classLearningModule- Throws:
java.lang.Exception
-
-
DMelt 3.0 © DataMelt by jWork.ORG