#[non_exhaustive]pub struct VariableImpactExplanation {
pub event_variable_name: Option<String>,
pub relative_impact: Option<String>,
pub log_odds_impact: Option<f32>,
}
Expand description
The details of the event variable's impact on the prediction score.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.event_variable_name: Option<String>
The event variable name.
relative_impact: Option<String>
The event variable's relative impact in terms of magnitude on the prediction scores. The relative impact values consist of a numerical rating (0-5, 5 being the highest) and direction (increased/decreased) impact of the fraud risk.
log_odds_impact: Option<f32>
The raw, uninterpreted value represented as log-odds of the fraud. These values are usually between -10 to +10, but range from - infinity to + infinity.
-
A positive value indicates that the variable drove the risk score up.
-
A negative value indicates that the variable drove the risk score down.
Implementations§
source§impl VariableImpactExplanation
impl VariableImpactExplanation
sourcepub fn event_variable_name(&self) -> Option<&str>
pub fn event_variable_name(&self) -> Option<&str>
The event variable name.
sourcepub fn relative_impact(&self) -> Option<&str>
pub fn relative_impact(&self) -> Option<&str>
The event variable's relative impact in terms of magnitude on the prediction scores. The relative impact values consist of a numerical rating (0-5, 5 being the highest) and direction (increased/decreased) impact of the fraud risk.
sourcepub fn log_odds_impact(&self) -> Option<f32>
pub fn log_odds_impact(&self) -> Option<f32>
The raw, uninterpreted value represented as log-odds of the fraud. These values are usually between -10 to +10, but range from - infinity to + infinity.
-
A positive value indicates that the variable drove the risk score up.
-
A negative value indicates that the variable drove the risk score down.
source§impl VariableImpactExplanation
impl VariableImpactExplanation
sourcepub fn builder() -> VariableImpactExplanationBuilder
pub fn builder() -> VariableImpactExplanationBuilder
Creates a new builder-style object to manufacture VariableImpactExplanation
.
Trait Implementations§
source§impl Clone for VariableImpactExplanation
impl Clone for VariableImpactExplanation
source§fn clone(&self) -> VariableImpactExplanation
fn clone(&self) -> VariableImpactExplanation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VariableImpactExplanation
impl Debug for VariableImpactExplanation
source§impl PartialEq for VariableImpactExplanation
impl PartialEq for VariableImpactExplanation
source§fn eq(&self, other: &VariableImpactExplanation) -> bool
fn eq(&self, other: &VariableImpactExplanation) -> bool
self
and other
values to be equal, and is used
by ==
.