public static class RBFNetwork.Trainer<T> extends RegressionTrainer<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 |
setNumCenters(int m)
Sets the number of centers.
|
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,
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.
|
setAttributes
public 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 setNumCenters(int m)
m
- the number of centers.public RBFNetwork.Trainer setNormalized(boolean normalized)
normalized
- true to learn normalized RBF network.public RBFNetwork<T> train(T[] x, double[] y)
RegressionTrainer
train
in class RegressionTrainer<T>
x
- the training instances.y
- the training response values.public RBFNetwork<T> train(T[] x, double[] y, T[] centers)
x
- the training data.y
- the response variable.centers
- the centers of RBF functions.