public class KernelSVMOptions extends Object implements ClassificationOptions<KernelSVMTrainer>
See:
Shalev-Shwartz S, Singer Y, Srebro N, Cotter A "Pegasos: Primal Estimated Sub-Gradient Solver for SVM" Mathematical Programming, 2011.
Modifier and Type | Class and Description |
---|---|
static class |
KernelSVMOptions.KernelEnum
The kernel types.
|
Modifier and Type | Field and Description |
---|---|
double |
kernelDegree |
int |
kernelEpochs |
double |
kernelGamma |
double |
kernelIntercept |
KernelSVMOptions.KernelEnum |
kernelKernel |
double |
kernelLambda |
int |
kernelLoggingInterval |
Constructor and Description |
---|
KernelSVMOptions() |
Modifier and Type | Method and Description |
---|---|
KernelSVMTrainer |
getTrainer()
Constructs the trainer based on the provided arguments.
|
@Option(longName="kernel-intercept", usage="Intercept in kernel function. Defaults to 1.0.") public double kernelIntercept
@Option(longName="kernel-degree", usage="Degree in polynomial kernel function. Defaults to 1.0.") public double kernelDegree
@Option(longName="kernel-gamma", usage="Gamma value in kernel function. Defaults to 1.0.") public double kernelGamma
@Option(longName="kernel-epochs", usage="Number of SGD epochs. Defaults to 5.") public int kernelEpochs
@Option(longName="kernel-kernel", usage="Kernel function. Defaults to LINEAR.") public KernelSVMOptions.KernelEnum kernelKernel
@Option(longName="kernel-lambda", usage="Lambda value in gradient optimisation. Defaults to 0.01.") public double kernelLambda
@Option(longName="kernel-logging-interval", usage="Log the objective after <int> examples. Defaults to 100.") public int kernelLoggingInterval
public KernelSVMTrainer getTrainer()
ClassificationOptions
getTrainer
in interface ClassificationOptions<KernelSVMTrainer>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.