pub struct HistGradientBoostingRegressor {
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 regressor.
Much faster than GradientBoostingRegressor for datasets with >1000 samples.
Features are discretized into 256 bins for O(n) split finding.
Fields§
§n_estimators: usize§learning_rate: f64§max_depth: usize§min_samples_leaf: usize§l2_regularization: f64§max_bins: usizeImplementations§
Source§impl HistGradientBoostingRegressor
impl HistGradientBoostingRegressor
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 HistGradientBoostingRegressor
impl Clone for HistGradientBoostingRegressor
Source§fn clone(&self) -> HistGradientBoostingRegressor
fn clone(&self) -> HistGradientBoostingRegressor
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 HistGradientBoostingRegressor
impl<'de> Deserialize<'de> for HistGradientBoostingRegressor
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 HistGradientBoostingRegressor
impl Fit<f64> for HistGradientBoostingRegressor
Auto Trait Implementations§
impl Freeze for HistGradientBoostingRegressor
impl RefUnwindSafe for HistGradientBoostingRegressor
impl Send for HistGradientBoostingRegressor
impl Sync for HistGradientBoostingRegressor
impl Unpin for HistGradientBoostingRegressor
impl UnsafeUnpin for HistGradientBoostingRegressor
impl UnwindSafe for HistGradientBoostingRegressor
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