pub struct GradientBoosting {
pub n_estimators: usize,
pub learning_rate: f64,
pub max_depth: usize,
pub loss: GBLoss,
}Expand description
Ensemble method: gradient boosting.
Fields§
§n_estimators: usize§learning_rate: f64§max_depth: usize§loss: GBLossImplementations§
Source§impl GradientBoosting
impl GradientBoosting
pub fn new(n: usize, lr: f64, depth: usize, loss: GBLoss) -> Self
pub fn xgboost_style(n: usize) -> Self
pub fn effective_shrinkage(&self) -> f64
pub fn n_leaves_upper_bound(&self) -> usize
pub fn is_regularized(&self) -> bool
Trait Implementations§
Source§impl Clone for GradientBoosting
impl Clone for GradientBoosting
Source§fn clone(&self) -> GradientBoosting
fn clone(&self) -> GradientBoosting
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GradientBoosting
impl RefUnwindSafe for GradientBoosting
impl Send for GradientBoosting
impl Sync for GradientBoosting
impl Unpin for GradientBoosting
impl UnsafeUnpin for GradientBoosting
impl UnwindSafe for GradientBoosting
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more