public static class RegressionTree.Trainer extends RegressionTrainer<double[]>
| Constructor and Description |
|---|
RegressionTree.Trainer(Attribute[] attributes,
int J)
Constructor.
|
RegressionTree.Trainer(int J)
Constructor.
|
RegressionTree.Trainer(int numFeatures,
int J)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setMaximumLeafNodes(int J)
Sets the maximum number of leaf nodes in the tree.
|
RegressionTree |
train(double[][] x,
double[] y)
Learns a regression model with given training data.
|
RegressionTree |
train(int[][] x,
double[] y) |
setAttributespublic RegressionTree.Trainer(int J)
J - the maximum number of leaf nodes in the tree.public RegressionTree.Trainer(Attribute[] attributes, int J)
attributes - the attributes of independent variable.J - the maximum number of leaf nodes in the tree.public RegressionTree.Trainer(int numFeatures,
int J)
numFeatures - the number of features.J - the maximum number of leaf nodes in the tree.public void setMaximumLeafNodes(int J)
J - the maximum number of leaf nodes in the tree.public RegressionTree train(double[][] x, double[] y)
RegressionTrainertrain in class RegressionTrainer<double[]>x - the training instances.y - the training response values.public RegressionTree train(int[][] x, double[] y)
Copyright © 2015. All rights reserved.