Class ClassificationEnsembleOptions
java.lang.Object
org.tribuo.classification.ensemble.ClassificationEnsembleOptions
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Options
public class ClassificationEnsembleOptions
extends Object
implements com.oracle.labs.mlrg.olcut.config.Options
Options for building a classification ensemble.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The type of ensemble. -
Field Summary
Modifier and TypeFieldDescriptionint
Number of base learners in the ensemble.long
RNG seed.Ensemble method, options are {ADABOOST, BAGGING, RF}.Fields inherited from interface com.oracle.labs.mlrg.olcut.config.Options
header
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionwrapTrainer
(Trainer<Label> trainer) Wraps the supplied trainer using the ensemble trainer described by these options.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.oracle.labs.mlrg.olcut.config.Options
getOptionsDescription
-
Field Details
-
type
@Option(longName="ensemble-type", usage="Ensemble method, options are {ADABOOST, BAGGING, RF}.") public ClassificationEnsembleOptions.EnsembleType typeEnsemble method, options are {ADABOOST, BAGGING, RF}. -
ensembleSize
@Option(longName="ensemble-size", usage="Number of base learners in the ensemble.") public int ensembleSizeNumber of base learners in the ensemble. -
seed
@Option(longName="ensemble-seed", usage="RNG seed.") public long seedRNG seed.
-
-
Constructor Details
-
ClassificationEnsembleOptions
public ClassificationEnsembleOptions()
-
-
Method Details
-
wrapTrainer
Wraps the supplied trainer using the ensemble trainer described by these options.- Parameters:
trainer
- The trainer to wrap.- Returns:
- An ensemble trainer.
-