public static class RBFNetwork.Trainer<T> extends RegressionTrainer<T>
| Constructor and Description |
|---|
RBFNetwork.Trainer(Metric<T> distance)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setNormalized(boolean normalized)
Sets true to learn normalized RBF network.
|
void |
setNumCenters(int m)
Sets the number of centers.
|
void |
setRBF(RadialBasisFunction[] rbf)
Sets the radial basis functions.
|
void |
setRBF(RadialBasisFunction rbf,
int m)
Sets the radial basis function.
|
RBFNetwork<T> |
train(T[] x,
double[] y)
Learns a regression model with given training data.
|
RBFNetwork<T> |
train(T[] x,
double[] y,
T[] centers)
Learns a RBF network with given centers.
|
setAttributespublic void setRBF(RadialBasisFunction rbf, int m)
rbf - the radial basis function.m - the number of basis functions.public void setRBF(RadialBasisFunction[] rbf)
rbf - the radial basis functions.public void setNumCenters(int m)
m - the number of centers.public void setNormalized(boolean normalized)
normalized - true to learn normalized RBF network.public RBFNetwork<T> train(T[] x, double[] y)
RegressionTrainertrain in class RegressionTrainer<T>x - the training instances.y - the training response values.public RBFNetwork<T> train(T[] x, double[] y, T[] centers)
x - training samples.y - training labels in [0, k), where k is the number of classes.centers - the centers of RBF functions.Copyright © 2015. All rights reserved.