public static class SVR.Trainer<T> extends RegressionTrainer<T>
| Constructor and Description |
|---|
SVR.Trainer(MercerKernel<T> kernel,
double eps,
double C)
Constructor of trainer for binary SVMs.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setTolerance(double tol)
Sets the tolerance of convergence test.
|
SVR<T> |
train(T[] x,
double[] y)
Learns a regression model with given training data.
|
setAttributespublic SVR.Trainer(MercerKernel<T> kernel, double eps, double C)
kernel - the kernel function.eps - the loss function error threshold.C - the soft margin penalty parameter.public void setTolerance(double tol)
tol - the tolerance of convergence test.public SVR<T> train(T[] x, double[] y)
RegressionTrainertrain in class RegressionTrainer<T>x - the training instances.y - the training response values.Copyright © 2015. All rights reserved.