pub struct EarlyTermScore {
pub score: AnomalyScore,
pub trees_evaluated: usize,
pub trees_available: usize,
pub stderr: f64,
pub early_stopped: bool,
}Expand description
Outcome of a crate::RandomCutForest::score_early_term call.
Fields§
§score: AnomalyScoreFinal scalar anomaly score — running mean at break time, identical in shape to the full-ensemble score.
trees_evaluated: usizeNumber of trees that actually contributed before the detector broke out of the loop.
trees_available: usizeTotal trees available in the forest — use with
trees_evaluated to compute the latency savings.
stderr: f64Standard error of the per-tree score mean at break time
(sqrt(var / n)). Useful for caller-side confidence
diagnostics.
early_stopped: booltrue when the loop exited before every tree was walked,
false when the full ensemble was traversed (low
confidence, too few leaves in the forest, etc.).
Trait Implementations§
Source§impl Clone for EarlyTermScore
impl Clone for EarlyTermScore
Source§fn clone(&self) -> EarlyTermScore
fn clone(&self) -> EarlyTermScore
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 EarlyTermScore
impl Debug for EarlyTermScore
Source§impl<'de> Deserialize<'de> for EarlyTermScore
impl<'de> Deserialize<'de> for EarlyTermScore
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EarlyTermScore
impl PartialEq for EarlyTermScore
Source§impl Serialize for EarlyTermScore
impl Serialize for EarlyTermScore
impl Copy for EarlyTermScore
impl StructuralPartialEq for EarlyTermScore
Auto Trait Implementations§
impl Freeze for EarlyTermScore
impl RefUnwindSafe for EarlyTermScore
impl Send for EarlyTermScore
impl Sync for EarlyTermScore
impl Unpin for EarlyTermScore
impl UnsafeUnpin for EarlyTermScore
impl UnwindSafe for EarlyTermScore
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