pub struct BaggingClassifier {
pub n_estimators: usize,
pub max_samples: f32,
pub max_features: f32,
pub bootstrap: bool,
pub bootstrap_features: bool,
/* private fields */
}Expand description
Bagging Classifier (Bootstrap Aggregating)
Fields§
§n_estimators: usize§max_samples: f32§max_features: f32§bootstrap: bool§bootstrap_features: boolImplementations§
Source§impl BaggingClassifier
impl BaggingClassifier
pub fn new(n_estimators: usize) -> Self
pub fn max_samples(self, ratio: f32) -> Self
pub fn max_features(self, ratio: f32) -> Self
pub fn fit(&mut self, x: &Tensor, y: &Tensor)
pub fn predict(&self, x: &Tensor) -> Tensor
pub fn score(&self, x: &Tensor, y: &Tensor) -> f32
Auto Trait Implementations§
impl Freeze for BaggingClassifier
impl RefUnwindSafe for BaggingClassifier
impl Send for BaggingClassifier
impl Sync for BaggingClassifier
impl Unpin for BaggingClassifier
impl UnwindSafe for BaggingClassifier
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