public static class AdaBoost.Trainer extends ClassifierTrainer<double[]>
| Constructor and Description |
|---|
AdaBoost.Trainer(Attribute[] attributes,
int T)
Constructor.
|
AdaBoost.Trainer(int T)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setMaximumLeafNodes(int J)
Sets the maximum number of leaf nodes in the tree.
|
void |
setNumTrees(int T)
Sets the number of trees in the random forest.
|
AdaBoost |
train(double[][] x,
int[] y)
Learns a classifier with given training data.
|
setAttributespublic AdaBoost.Trainer(int T)
T - the number of trees.public AdaBoost.Trainer(Attribute[] attributes, int T)
attributes - the attributes of independent variable.T - the number of trees.public void setNumTrees(int T)
T - the number of trees.public void setMaximumLeafNodes(int J)
J - the maximum number of leaf nodes in the tree.public AdaBoost train(double[][] x, int[] y)
ClassifierTrainertrain in class ClassifierTrainer<double[]>x - the training instances.y - the training labels.Copyright © 2015. All rights reserved.