[][src]Enum liblinear::SolverType

pub enum SolverType {
    L2R_LR,
    L2R_L2LOSS_SVC_DUAL,
    L2R_L2LOSS_SVC,
    L2R_L1LOSS_SVC_DUAL,
    MCSVM_CS,
    L1R_L2LOSS_SVC,
    L1R_LR,
    L2R_LR_DUAL,
    L2R_L2LOSS_SVR,
    L2R_L2LOSS_SVR_DUAL,
    L2R_L1LOSS_SVR_DUAL,
}

Types of generalized linear models supported by liblinear.

These combine several types of regularization schemes:

  • L1
  • L2

...and loss functions:

  • L1-loss for SVM
  • Regular L2-loss for SVM (hinge-loss)
  • Logistic loss for logistic regression

Variants

L2R_LR

L2-regularized logistic regression (primal).

L2R_L2LOSS_SVC_DUAL

L2-regularized L2-loss support vector classification (dual).

L2R_L2LOSS_SVC

L2-regularized L2-loss support vector classification (primal).

L2R_L1LOSS_SVC_DUAL

L2-regularized L1-loss support vector classification (dual).

MCSVM_CS

Support vector classification by Crammer and Singer.

L1R_L2LOSS_SVC

L1-regularized L2-loss support vector classification.

L1R_LR

L1-regularized logistic regression.

L2R_LR_DUAL

L2-regularized logistic regression (dual).

L2R_L2LOSS_SVR

L2-regularized L2-loss support vector regression (primal).

L2R_L2LOSS_SVR_DUAL

L2-regularized L2-loss support vector regression (dual).

L2R_L1LOSS_SVR_DUAL

L2-regularized L1-loss support vector regression (dual).

Methods

impl SolverType[src]

pub fn is_logistic_regression(&self) -> bool[src]

Returns true if the solver is a probabilistic/logistic regression solver.

Supported solvers: L2R_LR, L1R_LR, L2R_LR_DUAL.

pub fn is_support_vector_regression(&self) -> bool[src]

Returns true if the solver is a support vector regression solver.

Supported solvers: L2R_L2LOSS_SVR, L2R_L2LOSS_SVR_DUAL, L2R_L1LOSS_SVR_DUAL.

pub fn is_multi_class_classification(&self) -> bool[src]

Returns true if the solver supports multi-class classification.

Supported solvers: All non-SVR solvers.

Trait Implementations

impl Default for SolverType[src]

fn default() -> Self[src]

Default: L2R_LR

Auto Trait Implementations

impl Send for SolverType

impl Sync for SolverType

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.