pub struct AssociationRule {
pub antecedent: Vec<String>,
pub consequent: Vec<String>,
pub support: usize,
pub support_pct: f64,
pub confidence: f64,
pub lift: f64,
pub classification: String,
}Expand description
An association rule antecedent → consequent with support, confidence,
and lift.
Fields§
§antecedent: Vec<String>§consequent: Vec<String>§support: usize§support_pct: f64support / |transactions|, rounded to 4 decimals.
confidence: f64sup(A∪C) / sup(A), rounded to 4 decimals.
lift: f64confidence / (sup(C) / n), rounded to 4 decimals. 0.0 when sup(C)
is unknown (consequent wasn’t a frequent itemset).
classification: String"invariant" (conf ≥ 0.99) / "strong" (≥ 0.85) / "moderate" (≥ 0.5).
Trait Implementations§
Source§impl Clone for AssociationRule
impl Clone for AssociationRule
Source§fn clone(&self) -> AssociationRule
fn clone(&self) -> AssociationRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AssociationRule
impl Debug for AssociationRule
Source§impl<'de> Deserialize<'de> for AssociationRule
impl<'de> Deserialize<'de> for AssociationRule
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
Auto Trait Implementations§
impl Freeze for AssociationRule
impl RefUnwindSafe for AssociationRule
impl Send for AssociationRule
impl Sync for AssociationRule
impl Unpin for AssociationRule
impl UnsafeUnpin for AssociationRule
impl UnwindSafe for AssociationRule
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