Class SupportVector<T>

java.lang.Object
smile.base.svm.SupportVector<T>
Type Parameters:
T - the data type of support vectors.
All Implemented Interfaces:
Serializable

public class SupportVector<T> extends Object implements Serializable
Support vector.
See Also:
  • Constructor Details

    • SupportVector

      public SupportVector(int i, T x, int y, double alpha, double g, double Cp, double Cn, double k)
      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).