NuSVC
API reference for NuSVC
SVM.NuSVC
Variant of SVC
that uses the nu
parameter to control the fraction of support vectors and the margin errors.
interface NuSVCProps {
nu?: number;
}
constructor(props: NuSVCProps = {})
Parameters
nu
(number, default0.5
): trade-off between the number of support vectors and training errorsC
(number, default1/nu
): regularization strengthmaxIter
(number, default100
): maximum iterations for traininglearningRate
(number, default0.01
): step size for gradient descentkernel
('linear' | 'rbf', default'rbf'
): kernel typegamma
(number, default1
): RBF kernel coefficient
NuSVC shares the same usage as SVC
but uses the nu
parameter instead of C
.