pub enum ContextAwareStrategy {
Conditional {
n_bins: usize,
min_samples_per_bin: usize,
},
FeatureWeighted {
weighting: FeatureWeighting,
},
ClusterBased {
n_clusters: usize,
max_iter: usize,
},
LocalitySensitive {
n_neighbors: usize,
distance_power: Float,
},
AdaptiveLocal {
radius: Float,
min_local_samples: usize,
},
}Expand description
Strategy for context-aware predictions
Variants§
Conditional
Make predictions conditional on feature bins/intervals
Fields
FeatureWeighted
Use feature-weighted predictions based on feature importance
Fields
§
weighting: FeatureWeightingWeighting method for features
ClusterBased
Cluster-based predictions using simple k-means
LocalitySensitive
Locality-sensitive predictions using nearest neighbors
Fields
AdaptiveLocal
Adaptive local baselines that adjust based on local feature statistics
Trait Implementations§
Source§impl Clone for ContextAwareStrategy
impl Clone for ContextAwareStrategy
Source§fn clone(&self) -> ContextAwareStrategy
fn clone(&self) -> ContextAwareStrategy
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 ContextAwareStrategy
impl Debug for ContextAwareStrategy
Source§impl PartialEq for ContextAwareStrategy
impl PartialEq for ContextAwareStrategy
impl StructuralPartialEq for ContextAwareStrategy
Auto Trait Implementations§
impl Freeze for ContextAwareStrategy
impl RefUnwindSafe for ContextAwareStrategy
impl Send for ContextAwareStrategy
impl Sync for ContextAwareStrategy
impl Unpin for ContextAwareStrategy
impl UnwindSafe for ContextAwareStrategy
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