pub struct GradientBoostingRegressorBuilder { /* private fields */ }Expand description
Builder for GradientBoostingRegressor
Implementations§
Source§impl GradientBoostingRegressorBuilder
impl GradientBoostingRegressorBuilder
pub fn n_estimators(self, n_estimators: usize) -> Self
pub fn learning_rate(self, learning_rate: Float) -> Self
pub fn max_depth(self, max_depth: usize) -> Self
pub fn loss_function(self, loss_function: LossFunction) -> Self
pub fn tree_type(self, tree_type: GradientBoostingTree) -> Self
pub fn build(self) -> GradientBoostingRegressor
Trait Implementations§
Source§impl Default for GradientBoostingRegressorBuilder
impl Default for GradientBoostingRegressorBuilder
Source§fn default() -> GradientBoostingRegressorBuilder
fn default() -> GradientBoostingRegressorBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GradientBoostingRegressorBuilder
impl RefUnwindSafe for GradientBoostingRegressorBuilder
impl Send for GradientBoostingRegressorBuilder
impl Sync for GradientBoostingRegressorBuilder
impl Unpin for GradientBoostingRegressorBuilder
impl UnwindSafe for GradientBoostingRegressorBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more