public static class RBFNetwork.Trainer<T> extends ClassifierTrainer<T>
| Constructor and Description |
|---|
Trainer(smile.math.distance.Metric<T> distance)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
RBFNetwork.Trainer |
setNormalized(boolean normalized)
Sets true to learn normalized RBF network.
|
RBFNetwork.Trainer |
setRBF(smile.math.rbf.RadialBasisFunction[] rbf)
Sets the radial basis functions.
|
RBFNetwork.Trainer |
setRBF(smile.math.rbf.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 Trainer(smile.math.distance.Metric<T> distance)
distance - the distance metric functor.public RBFNetwork.Trainer setRBF(smile.math.rbf.RadialBasisFunction rbf, int m)
rbf - the radial basis function.m - the number of basis functions.public RBFNetwork.Trainer setRBF(smile.math.rbf.RadialBasisFunction[] rbf)
rbf - the radial basis functions.public RBFNetwork.Trainer 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.