#[non_exhaustive]pub struct MetricDataPointBuilder { /* private fields */ }
Expand description
A builder for MetricDataPoint
.
Implementations§
source§impl MetricDataPointBuilder
impl MetricDataPointBuilder
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) -> MetricDataPoint
pub fn build(self) -> MetricDataPoint
Consumes the builder and constructs a MetricDataPoint
.
Trait Implementations§
source§impl Clone for MetricDataPointBuilder
impl Clone for MetricDataPointBuilder
source§fn clone(&self) -> MetricDataPointBuilder
fn clone(&self) -> MetricDataPointBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricDataPointBuilder
impl Debug for MetricDataPointBuilder
source§impl Default for MetricDataPointBuilder
impl Default for MetricDataPointBuilder
source§fn default() -> MetricDataPointBuilder
fn default() -> MetricDataPointBuilder
source§impl PartialEq for MetricDataPointBuilder
impl PartialEq for MetricDataPointBuilder
source§fn eq(&self, other: &MetricDataPointBuilder) -> bool
fn eq(&self, other: &MetricDataPointBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.