pub trait BoostTrait: BoostTraitConst + DTreesTrait {
// Required method
fn as_raw_mut_Boost(&mut self) -> *mut c_void;
// Provided methods
fn set_boost_type(&mut self, val: i32) -> Result<()> { ... }
fn set_weak_count(&mut self, val: i32) -> Result<()> { ... }
fn set_weight_trim_rate(&mut self, val: f64) -> Result<()> { ... }
}
Expand description
Mutable methods for crate::ml::Boost
Required Methods§
fn as_raw_mut_Boost(&mut self) -> *mut c_void
Provided Methods§
Sourcefn set_boost_type(&mut self, val: i32) -> Result<()>
fn set_boost_type(&mut self, val: i32) -> Result<()>
Type of the boosting algorithm. See Boost::Types. Default value is Boost::REAL.
§See also
setBoostType getBoostType
Sourcefn set_weak_count(&mut self, val: i32) -> Result<()>
fn set_weak_count(&mut self, val: i32) -> Result<()>
Sourcefn set_weight_trim_rate(&mut self, val: f64) -> Result<()>
fn set_weight_trim_rate(&mut self, val: f64) -> Result<()>
A threshold between 0 and 1 used to save computational time.
Samples with summary weight do not participate in the next
iteration of training. Set this parameter to 0 to turn off this functionality. Default value is 0.95.
§See also
setWeightTrimRate getWeightTrimRate
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.