public static class RBFNetwork.Trainer<T> extends ClassifierTrainer<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 |
setRBF(RadialBasisFunction[] rbf)
Sets the radial basis functions.
|
void |
setRBF(RadialBasisFunction rbf,
int m)
Sets the radial basis function.
|
RBFNetwork<T> |
train(T[] x,
int[] y)
Learns a classifier with given training data.
|
RBFNetwork<T> |
train(T[] x,
int[] 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 setNormalized(boolean normalized)
normalized - true to learn normalized RBF network.public RBFNetwork<T> train(T[] x, int[] y)
ClassifierTrainertrain in class ClassifierTrainer<T>x - the training instances.y - the training labels.public RBFNetwork<T> train(T[] x, int[] 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.