#[non_exhaustive]pub struct OfiMetricDataPointBuilder { /* private fields */ }
Expand description
A builder for OfiMetricDataPoint
.
Implementations§
source§impl OfiMetricDataPointBuilder
impl OfiMetricDataPointBuilder
sourcepub fn fpr(self, input: f32) -> Self
pub fn fpr(self, input: f32) -> Self
The false positive rate. This is the percentage of total legitimate events that are incorrectly predicted as fraud.
sourcepub fn set_fpr(self, input: Option<f32>) -> Self
pub fn set_fpr(self, input: Option<f32>) -> Self
The false positive rate. This is the percentage of total legitimate events that are incorrectly predicted as fraud.
sourcepub fn get_fpr(&self) -> &Option<f32>
pub fn get_fpr(&self) -> &Option<f32>
The false positive rate. This is the percentage of total legitimate events that are incorrectly predicted as fraud.
sourcepub fn precision(self, input: f32) -> Self
pub fn precision(self, input: f32) -> Self
The percentage of fraud events correctly predicted as fraudulent as compared to all events predicted as fraudulent.
sourcepub fn set_precision(self, input: Option<f32>) -> Self
pub fn set_precision(self, input: Option<f32>) -> Self
The percentage of fraud events correctly predicted as fraudulent as compared to all events predicted as fraudulent.
sourcepub fn get_precision(&self) -> &Option<f32>
pub fn get_precision(&self) -> &Option<f32>
The percentage of fraud events correctly predicted as fraudulent as compared to all events predicted as fraudulent.
sourcepub fn tpr(self, input: f32) -> Self
pub fn tpr(self, input: f32) -> Self
The true positive rate. This is the percentage of total fraud the model detects. Also known as capture rate.
sourcepub fn set_tpr(self, input: Option<f32>) -> Self
pub fn set_tpr(self, input: Option<f32>) -> Self
The true positive rate. This is the percentage of total fraud the model detects. Also known as capture rate.
sourcepub fn get_tpr(&self) -> &Option<f32>
pub fn get_tpr(&self) -> &Option<f32>
The true positive rate. This is the percentage of total fraud the model detects. Also known as capture rate.
sourcepub fn threshold(self, input: f32) -> Self
pub fn threshold(self, input: f32) -> Self
The model threshold that specifies an acceptable fraud capture rate. For example, a threshold of 500 means any model score 500 or above is labeled as fraud.
sourcepub fn set_threshold(self, input: Option<f32>) -> Self
pub fn set_threshold(self, input: Option<f32>) -> Self
The model threshold that specifies an acceptable fraud capture rate. For example, a threshold of 500 means any model score 500 or above is labeled as fraud.
sourcepub fn get_threshold(&self) -> &Option<f32>
pub fn get_threshold(&self) -> &Option<f32>
The model threshold that specifies an acceptable fraud capture rate. For example, a threshold of 500 means any model score 500 or above is labeled as fraud.
sourcepub fn build(self) -> OfiMetricDataPoint
pub fn build(self) -> OfiMetricDataPoint
Consumes the builder and constructs a OfiMetricDataPoint
.
Trait Implementations§
source§impl Clone for OfiMetricDataPointBuilder
impl Clone for OfiMetricDataPointBuilder
source§fn clone(&self) -> OfiMetricDataPointBuilder
fn clone(&self) -> OfiMetricDataPointBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OfiMetricDataPointBuilder
impl Debug for OfiMetricDataPointBuilder
source§impl Default for OfiMetricDataPointBuilder
impl Default for OfiMetricDataPointBuilder
source§fn default() -> OfiMetricDataPointBuilder
fn default() -> OfiMetricDataPointBuilder
source§impl PartialEq for OfiMetricDataPointBuilder
impl PartialEq for OfiMetricDataPointBuilder
source§fn eq(&self, other: &OfiMetricDataPointBuilder) -> bool
fn eq(&self, other: &OfiMetricDataPointBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.