pub struct HistGradientBoostingClassifier {
pub n_estimators: usize,
pub learning_rate: f64,
pub max_depth: usize,
pub min_samples_leaf: usize,
pub l2_regularization: f64,
pub max_bins: usize,
}Expand description
Histogram-based gradient boosting classifier.
Binary classification using log-loss (logistic). Multi-class uses OvR.
Fields§
§n_estimators: usize§learning_rate: f64§max_depth: usize§min_samples_leaf: usize§l2_regularization: f64§max_bins: usizeImplementations§
Source§impl HistGradientBoostingClassifier
impl HistGradientBoostingClassifier
pub fn new() -> Self
pub fn with_n_estimators(self, n: usize) -> Self
pub fn with_learning_rate(self, lr: f64) -> Self
pub fn with_max_depth(self, d: usize) -> Self
pub fn with_min_samples_leaf(self, m: usize) -> Self
pub fn with_l2_regularization(self, l2: f64) -> Self
pub fn with_max_bins(self, b: usize) -> Self
Trait Implementations§
Source§impl Clone for HistGradientBoostingClassifier
impl Clone for HistGradientBoostingClassifier
Source§fn clone(&self) -> HistGradientBoostingClassifier
fn clone(&self) -> HistGradientBoostingClassifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for HistGradientBoostingClassifier
impl<'de> Deserialize<'de> for HistGradientBoostingClassifier
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Fit<f64> for HistGradientBoostingClassifier
impl Fit<f64> for HistGradientBoostingClassifier
Auto Trait Implementations§
impl Freeze for HistGradientBoostingClassifier
impl RefUnwindSafe for HistGradientBoostingClassifier
impl Send for HistGradientBoostingClassifier
impl Sync for HistGradientBoostingClassifier
impl Unpin for HistGradientBoostingClassifier
impl UnsafeUnpin for HistGradientBoostingClassifier
impl UnwindSafe for HistGradientBoostingClassifier
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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