pub struct AdaBoostClassifier {
pub n_estimators: usize,
pub learning_rate: f32,
pub algorithm: AdaBoostAlgorithm,
/* private fields */
}Expand description
AdaBoost Classifier (Adaptive Boosting)
Fields§
§n_estimators: usize§learning_rate: f32§algorithm: AdaBoostAlgorithmImplementations§
Source§impl AdaBoostClassifier
impl AdaBoostClassifier
pub fn new(n_estimators: usize) -> Self
pub fn learning_rate(self, lr: f32) -> Self
pub fn algorithm(self, algo: AdaBoostAlgorithm) -> 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 AdaBoostClassifier
impl RefUnwindSafe for AdaBoostClassifier
impl Send for AdaBoostClassifier
impl Sync for AdaBoostClassifier
impl Unpin for AdaBoostClassifier
impl UnwindSafe for AdaBoostClassifier
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