Struct google_bigquery2::api::AggregateClassificationMetrics[][src]

pub struct AggregateClassificationMetrics {
    pub accuracy: Option<f64>,
    pub f1_score: Option<f64>,
    pub log_loss: Option<f64>,
    pub precision: Option<f64>,
    pub recall: Option<f64>,
    pub roc_auc: Option<f64>,
    pub threshold: Option<f64>,
}

Aggregate metrics for classification/classifier models. For multi-class models, the metrics are either macro-averaged or micro-averaged. When macro-averaged, the metrics are calculated for each label and then an unweighted average is taken of those values. When micro-averaged, the metric is calculated globally by counting the total number of correctly predicted rows.

This type is not used in any activity, and only used as part of another schema.

Fields

accuracy: Option<f64>

Accuracy is the fraction of predictions given the correct label. For multiclass this is a micro-averaged metric.

f1_score: Option<f64>

The F1 score is an average of recall and precision. For multiclass this is a macro-averaged metric.

log_loss: Option<f64>

Logarithmic Loss. For multiclass this is a macro-averaged metric.

precision: Option<f64>

Precision is the fraction of actual positive predictions that had positive actual labels. For multiclass this is a macro-averaged metric treating each class as a binary classifier.

recall: Option<f64>

Recall is the fraction of actual positive labels that were given a positive prediction. For multiclass this is a macro-averaged metric.

roc_auc: Option<f64>

Area Under a ROC Curve. For multiclass this is a macro-averaged metric.

threshold: Option<f64>

Threshold at which the metrics are computed. For binary classification models this is the positive class threshold. For multi-class classfication models this is the confidence threshold.

Trait Implementations

impl Clone for AggregateClassificationMetrics[src]

impl Debug for AggregateClassificationMetrics[src]

impl Default for AggregateClassificationMetrics[src]

impl<'de> Deserialize<'de> for AggregateClassificationMetrics[src]

impl Part for AggregateClassificationMetrics[src]

impl Serialize for AggregateClassificationMetrics[src]

Auto Trait Implementations

impl RefUnwindSafe for AggregateClassificationMetrics[src]

impl Send for AggregateClassificationMetrics[src]

impl Sync for AggregateClassificationMetrics[src]

impl Unpin for AggregateClassificationMetrics[src]

impl UnwindSafe for AggregateClassificationMetrics[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.