Package de.bwaldvogel.liblinear
Enum Class SolverType
- All Implemented Interfaces:
Serializable
,Comparable<SolverType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionL1-regularized L2-loss support vector classificationL1-regularized logistic regressionL2-regularized L1-loss support vector classification (dual) (fka L1LOSS_SVM_DUAL)L2-regularized L2-loss support vector regression (primal)L2-regularized L2-loss support vector classification (primal) (fka L2LOSS_SVM)L2-regularized L2-loss support vector classification (dual) (fka L2LOSS_SVM_DUAL)L2-regularized L2-loss support vector regression (dual)L2-regularized L1-loss support vector regression (dual)L2-regularized logistic regression (primal) (fka L2_LR)L2-regularized logistic regression (dual)multi-class support vector classification by Crammer and Singerone-class support vector machine (dual) -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final boolean
private static final Map
<Integer, SolverType> private final boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SolverType
(int id, boolean logisticRegressionSolver, boolean supportVectorRegression) -
Method Summary
Modifier and TypeMethodDescriptionstatic SolverType
getById
(int id) int
getId()
boolean
boolean
boolean
static SolverType
Returns the enum constant of this class with the specified name.static SolverType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
L2R_LR
L2-regularized logistic regression (primal) (fka L2_LR) -
L2R_L2LOSS_SVC_DUAL
L2-regularized L2-loss support vector classification (dual) (fka L2LOSS_SVM_DUAL) -
L2R_L2LOSS_SVC
L2-regularized L2-loss support vector classification (primal) (fka L2LOSS_SVM) -
L2R_L1LOSS_SVC_DUAL
L2-regularized L1-loss support vector classification (dual) (fka L1LOSS_SVM_DUAL) -
MCSVM_CS
multi-class support vector classification by Crammer and Singer -
L1R_L2LOSS_SVC
L1-regularized L2-loss support vector classification- Since:
- 1.5
-
L1R_LR
L1-regularized logistic regression- Since:
- 1.5
-
L2R_LR_DUAL
L2-regularized logistic regression (dual)- Since:
- 1.7
-
L2R_L2LOSS_SVR
L2-regularized L2-loss support vector regression (dual)- Since:
- 1.91
-
L2R_L2LOSS_SVR_DUAL
L2-regularized L1-loss support vector regression (dual)- Since:
- 1.91
-
L2R_L1LOSS_SVR_DUAL
L2-regularized L2-loss support vector regression (primal)- Since:
- 1.91
-
ONECLASS_SVM
one-class support vector machine (dual)- Since:
- 2.40
-
-
Field Details
-
logisticRegressionSolver
private final boolean logisticRegressionSolver -
supportVectorRegression
private final boolean supportVectorRegression -
id
private final int id -
SOLVERS_BY_ID
-
-
Constructor Details
-
SolverType
private SolverType(int id, boolean logisticRegressionSolver, boolean supportVectorRegression)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
public int getId() -
getById
-
isLogisticRegressionSolver
public boolean isLogisticRegressionSolver()- Since:
- 1.9
-
isSupportVectorRegression
public boolean isSupportVectorRegression()- Since:
- 1.91
-
isOneClass
public boolean isOneClass()- Since:
- 2.40
-