pub struct BaggingPredictor { /* private fields */ }Expand description
Bagging utility for creating bagged ensemble predictions
Implementations§
Source§impl BaggingPredictor
impl BaggingPredictor
Sourcepub fn new(aggregation: AggregationStrategy) -> Self
pub fn new(aggregation: AggregationStrategy) -> Self
Create a new bagging predictor
Sourcepub fn aggregate_regression(
&self,
predictions: &Array2<f64>,
weights: Option<&Array1<f64>>,
) -> UtilsResult<Array1<f64>>
pub fn aggregate_regression( &self, predictions: &Array2<f64>, weights: Option<&Array1<f64>>, ) -> UtilsResult<Array1<f64>>
Sourcepub fn aggregate_classification(
&self,
predictions: &Array2<usize>,
) -> UtilsResult<Array1<usize>>
pub fn aggregate_classification( &self, predictions: &Array2<usize>, ) -> UtilsResult<Array1<usize>>
Sourcepub fn aggregate_probabilities(
&self,
probabilities: &[Array2<f64>],
) -> UtilsResult<Array2<f64>>
pub fn aggregate_probabilities( &self, probabilities: &[Array2<f64>], ) -> UtilsResult<Array2<f64>>
Trait Implementations§
Source§impl Clone for BaggingPredictor
impl Clone for BaggingPredictor
Source§fn clone(&self) -> BaggingPredictor
fn clone(&self) -> BaggingPredictor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BaggingPredictor
impl Debug for BaggingPredictor
Auto Trait Implementations§
impl Freeze for BaggingPredictor
impl RefUnwindSafe for BaggingPredictor
impl Send for BaggingPredictor
impl Sync for BaggingPredictor
impl Unpin for BaggingPredictor
impl UnwindSafe for BaggingPredictor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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