Enum SolverType

java.lang.Object
java.lang.Enum<SolverType>
de.bwaldvogel.liblinear.SolverType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SolverType>, java.lang.constant.Constable

public enum SolverType
extends java.lang.Enum<SolverType>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    L1R_L2LOSS_SVC
    L1-regularized L2-loss support vector classification
    L1R_LR
    L1-regularized logistic regression
    L2R_L1LOSS_SVC_DUAL
    L2-regularized L1-loss support vector classification (dual) (fka L1LOSS_SVM_DUAL)
    L2R_L1LOSS_SVR_DUAL
    L2-regularized L2-loss support vector regression (primal)
    L2R_L2LOSS_SVC
    L2-regularized L2-loss support vector classification (primal) (fka L2LOSS_SVM)
    L2R_L2LOSS_SVC_DUAL
    L2-regularized L2-loss support vector classification (dual) (fka L2LOSS_SVM_DUAL)
    L2R_L2LOSS_SVR
    L2-regularized L2-loss support vector regression (dual)
    L2R_L2LOSS_SVR_DUAL
    L2-regularized L1-loss support vector regression (dual)
    L2R_LR
    L2-regularized logistic regression (primal) (fka L2_LR)
    L2R_LR_DUAL
    L2-regularized logistic regression (dual)
    MCSVM_CS
    multi-class support vector classification by Crammer and Singer
    ONECLASS_SVM
    one-class support vector machine (dual)
  • Method Summary

    Modifier and Type Method Description
    static SolverType getById​(int id)  
    int getId()  
    boolean isLogisticRegressionSolver()  
    boolean isOneClass()  
    boolean isSupportVectorRegression()  
    static SolverType valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static SolverType[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • L2R_LR

      public static final SolverType L2R_LR
      L2-regularized logistic regression (primal) (fka L2_LR)
    • L2R_L2LOSS_SVC_DUAL

      public static final SolverType L2R_L2LOSS_SVC_DUAL
      L2-regularized L2-loss support vector classification (dual) (fka L2LOSS_SVM_DUAL)
    • L2R_L2LOSS_SVC

      public static final SolverType L2R_L2LOSS_SVC
      L2-regularized L2-loss support vector classification (primal) (fka L2LOSS_SVM)
    • L2R_L1LOSS_SVC_DUAL

      public static final SolverType L2R_L1LOSS_SVC_DUAL
      L2-regularized L1-loss support vector classification (dual) (fka L1LOSS_SVM_DUAL)
    • MCSVM_CS

      public static final SolverType MCSVM_CS
      multi-class support vector classification by Crammer and Singer
    • L1R_L2LOSS_SVC

      public static final SolverType L1R_L2LOSS_SVC
      L1-regularized L2-loss support vector classification
      Since:
      1.5
    • L1R_LR

      public static final SolverType L1R_LR
      L1-regularized logistic regression
      Since:
      1.5
    • L2R_LR_DUAL

      public static final SolverType L2R_LR_DUAL
      L2-regularized logistic regression (dual)
      Since:
      1.7
    • L2R_L2LOSS_SVR

      public static final SolverType L2R_L2LOSS_SVR
      L2-regularized L2-loss support vector regression (dual)
      Since:
      1.91
    • L2R_L2LOSS_SVR_DUAL

      public static final SolverType L2R_L2LOSS_SVR_DUAL
      L2-regularized L1-loss support vector regression (dual)
      Since:
      1.91
    • L2R_L1LOSS_SVR_DUAL

      public static final SolverType L2R_L1LOSS_SVR_DUAL
      L2-regularized L2-loss support vector regression (primal)
      Since:
      1.91
    • ONECLASS_SVM

      public static final SolverType ONECLASS_SVM
      one-class support vector machine (dual)
      Since:
      2.40
  • Method Details

    • values

      public static SolverType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SolverType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • getId

      public int getId()
    • getById

      public static SolverType getById​(int id)
    • isLogisticRegressionSolver

      public boolean isLogisticRegressionSolver()
      Since:
      1.9
    • isSupportVectorRegression

      public boolean isSupportVectorRegression()
      Since:
      1.91
    • isOneClass

      public boolean isOneClass()
      Since:
      2.40