Class SupportVector<T>
java.lang.Object
smile.base.svm.SupportVector<T>
- Type Parameters:
T- the data type of support vectors.
- All Implemented Interfaces:
Serializable
-
Constructor Summary
ConstructorsConstructorDescriptionSupportVector(int i, T x, int y, double alpha, double g, double Cp, double Cn, double k) Constructor. -
Method Summary
-
Constructor Details
-
SupportVector
Constructor.- Parameters:
i- the index of support vector.x- the support vector.y- the class label.alpha- Lagrangian multiplier of support vector.g- the gradient.Cp- the bound on positive samples.Cn- the bound on negative samples.k- the kernel value k(x, x).
-