[−][src]Struct liblinear::ParameterBuilder
Builder for LibLinearParameter.
Methods
impl ParameterBuilder
[src]
pub fn solver_type(&mut self, solver_type: SolverType) -> &mut Self
[src]
Set solver type.
Default: L2R_LR
pub fn stopping_criterion(&mut self, epsilon: f64) -> &mut Self
[src]
Set tolerance of termination criterion.
Default: 0.01
pub fn constraints_violation_cost(&mut self, cost: f64) -> &mut Self
[src]
Set cost of constraints violation.
Default: 1.0
pub fn regression_loss_sensitivity(&mut self, p: f64) -> &mut Self
[src]
Set tolerance margin in regression loss function of SVR. Not used for classification problems.
Default: 0.1
pub fn cost_penalty_weights(
&mut self,
cost_penalty_weights: Vec<f64>
) -> &mut Self
[src]
&mut self,
cost_penalty_weights: Vec<f64>
) -> &mut Self
Set weights to adjust the cost of constraints violation for specific classes.
Useful when training classifiers on unbalanced input data or with asymmetric mis-classification cost.
pub fn cost_penalty_labels(
&mut self,
cost_penalty_labels: Vec<i32>
) -> &mut Self
[src]
&mut self,
cost_penalty_labels: Vec<i32>
) -> &mut Self
Set classes that correspond to the weights used to adjust the cost of constraints violation.
Each weight corresponds to a label at the same index.
pub fn initial_solutions(&mut self, init_solutions: Vec<f64>) -> &mut Self
[src]
Set initial solution specification for solvers L2R_LR and/or L2R_L2LOSSES_SVC.
Auto Trait Implementations
impl Send for ParameterBuilder
impl Sync for ParameterBuilder
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 = !
🔬 This is a nightly-only experimental API. (
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>,