pub struct GradientBoostingClassifierBuilder { /* private fields */ }Expand description
Builder for GradientBoostingClassifier
Implementations§
Source§impl GradientBoostingClassifierBuilder
impl GradientBoostingClassifierBuilder
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) -> GradientBoostingClassifier
Trait Implementations§
Source§impl Default for GradientBoostingClassifierBuilder
impl Default for GradientBoostingClassifierBuilder
Source§fn default() -> GradientBoostingClassifierBuilder
fn default() -> GradientBoostingClassifierBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GradientBoostingClassifierBuilder
impl RefUnwindSafe for GradientBoostingClassifierBuilder
impl Send for GradientBoostingClassifierBuilder
impl Sync for GradientBoostingClassifierBuilder
impl Unpin for GradientBoostingClassifierBuilder
impl UnwindSafe for GradientBoostingClassifierBuilder
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