pub enum BenchmarkStrategy {
ZeroRule,
OneRule,
RandomStumps {
n_stumps: usize,
},
MajorityClassTieBreak,
WeightedRandom,
LinearTrend,
MovingAverage {
window_size: usize,
},
NearestNeighbor,
CompetitionBaseline,
}Expand description
Standard benchmark baseline strategies
Variants§
ZeroRule
Zero-Rule (ZeroR) - predicts most common class/mean value
OneRule
One-Rule (OneR) - simple decision stump on best single feature
RandomStumps
Random Forest of stumps - ensemble of single-feature decision trees
MajorityClassTieBreak
Majority class with tie-breaking
WeightedRandom
Weighted random by class frequency
LinearTrend
Linear trend baseline for time series
MovingAverage
Moving average baseline
NearestNeighbor
K-Nearest Neighbors with k=1
CompetitionBaseline
Competition baseline - combines multiple simple strategies
Trait Implementations§
Source§impl Clone for BenchmarkStrategy
impl Clone for BenchmarkStrategy
Source§fn clone(&self) -> BenchmarkStrategy
fn clone(&self) -> BenchmarkStrategy
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 moreAuto Trait Implementations§
impl Freeze for BenchmarkStrategy
impl RefUnwindSafe for BenchmarkStrategy
impl Send for BenchmarkStrategy
impl Sync for BenchmarkStrategy
impl Unpin for BenchmarkStrategy
impl UnwindSafe for BenchmarkStrategy
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