Trait SVMSGDTraitConst

Source
pub trait SVMSGDTraitConst: StatModelTraitConst {
    // Required method
    fn as_raw_SVMSGD(&self) -> *const c_void;

    // Provided methods
    fn get_svmsgd_type(&self) -> Result<i32> { ... }
    fn get_margin_type(&self) -> Result<i32> { ... }
    fn get_margin_regularization(&self) -> Result<f32> { ... }
    fn get_initial_step_size(&self) -> Result<f32> { ... }
    fn get_step_decreasing_power(&self) -> Result<f32> { ... }
    fn get_term_criteria(&self) -> Result<TermCriteria> { ... }
}
Expand description

Constant methods for crate::ml::SVMSGD

Required Methods§

Provided Methods§

Source

fn get_svmsgd_type(&self) -> Result<i32>

%Algorithm type, one of SVMSGD::SvmsgdType.

§See also

setSvmsgdType

Source

fn get_margin_type(&self) -> Result<i32>

%Margin type, one of SVMSGD::MarginType.

§See also

setMarginType

Source

fn get_margin_regularization(&self) -> Result<f32>

Parameter marginRegularization of a %SVMSGD optimization problem.

§See also

setMarginRegularization

Source

fn get_initial_step_size(&self) -> Result<f32>

Parameter initialStepSize of a %SVMSGD optimization problem.

§See also

setInitialStepSize

Source

fn get_step_decreasing_power(&self) -> Result<f32>

Parameter stepDecreasingPower of a %SVMSGD optimization problem.

§See also

setStepDecreasingPower

Source

fn get_term_criteria(&self) -> Result<TermCriteria>

Termination criteria of the training algorithm. You can specify the maximum number of iterations (maxCount) and/or how much the error could change between the iterations to make the algorithm continue (epsilon).

§See also

setTermCriteria

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§