pub struct ExtraTreesClassifier {
pub n_estimators: usize,
pub max_depth: Option<usize>,
pub min_samples_split: usize,
pub max_features: Option<usize>,
/* private fields */
}Expand description
Extra Trees Classifier (Extremely Randomized Trees)
Fields§
§n_estimators: usize§max_depth: Option<usize>§min_samples_split: usize§max_features: Option<usize>Implementations§
Source§impl ExtraTreesClassifier
impl ExtraTreesClassifier
pub fn new(n_estimators: usize) -> Self
pub fn max_depth(self, depth: usize) -> Self
pub fn fit(&mut self, x: &Tensor, y: &Tensor)
pub fn predict(&self, x: &Tensor) -> Tensor
pub fn predict_proba(&self, x: &Tensor) -> Tensor
pub fn score(&self, x: &Tensor, y: &Tensor) -> f32
Auto Trait Implementations§
impl Freeze for ExtraTreesClassifier
impl RefUnwindSafe for ExtraTreesClassifier
impl Send for ExtraTreesClassifier
impl Sync for ExtraTreesClassifier
impl Unpin for ExtraTreesClassifier
impl UnwindSafe for ExtraTreesClassifier
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