[−][src]Enum liblinear::SolverType
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]
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]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,