T - the type of input object.public abstract class RegressionTrainer<T> extends Object
| Constructor and Description |
|---|
RegressionTrainer()
Constructor.
|
RegressionTrainer(Attribute[] attributes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setAttributes(Attribute[] attributes)
Sets feature attributes.
|
abstract Regression<T> |
train(T[] x,
double[] y)
Learns a regression model with given training data.
|
public RegressionTrainer()
public RegressionTrainer(Attribute[] attributes)
attributes - the attributes of independent variable.public void setAttributes(Attribute[] attributes)
attributes - the feature attributes.public abstract Regression<T> train(T[] x, double[] y)
x - the training instances.y - the training response values.Copyright © 2015. All rights reserved.