bigquery
v2
|
#include <aggregate_classification_metrics.h>
Public Member Functions | |
AggregateClassificationMetrics (const Json::Value &storage) | |
AggregateClassificationMetrics (Json::Value *storage) | |
virtual | ~AggregateClassificationMetrics () |
const StringPiece | GetTypeName () const |
bool | has_accuracy () const |
void | clear_accuracy () |
double | get_accuracy () const |
void | set_accuracy (double value) |
bool | has_f1_score () const |
void | clear_f1_score () |
double | get_f1_score () const |
void | set_f1_score (double value) |
bool | has_log_loss () const |
void | clear_log_loss () |
double | get_log_loss () const |
void | set_log_loss (double value) |
bool | has_precision () const |
void | clear_precision () |
double | get_precision () const |
void | set_precision (double value) |
bool | has_recall () const |
void | clear_recall () |
double | get_recall () const |
void | set_recall (double value) |
bool | has_roc_auc () const |
void | clear_roc_auc () |
double | get_roc_auc () const |
void | set_roc_auc (double value) |
bool | has_threshold () const |
void | clear_threshold () |
double | get_threshold () const |
void | set_threshold (double value) |
Static Public Member Functions | |
static AggregateClassificationMetrics * | New () |
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.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'accuracy
' attribute.
|
inline |
Clears the 'f1Score
' attribute.
|
inline |
Clears the 'logLoss
' attribute.
|
inline |
Clears the 'precision
' attribute.
|
inline |
Clears the 'recall
' attribute.
|
inline |
Clears the 'rocAuc
' attribute.
|
inline |
Clears the 'threshold
' attribute.
|
inline |
Get the value of the 'accuracy
' attribute.
|
inline |
Get the value of the 'f1Score
' attribute.
|
inline |
Get the value of the 'logLoss
' attribute.
|
inline |
Get the value of the 'precision
' attribute.
|
inline |
Get the value of the 'recall
' attribute.
|
inline |
Get the value of the 'rocAuc
' attribute.
|
inline |
Get the value of the 'threshold
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'accuracy
' attribute was set.
accuracy
' attribute was set.
|
inline |
Determine if the 'f1Score
' attribute was set.
f1Score
' attribute was set.
|
inline |
Determine if the 'logLoss
' attribute was set.
logLoss
' attribute was set.
|
inline |
Determine if the 'precision
' attribute was set.
precision
' attribute was set.
|
inline |
Determine if the 'recall
' attribute was set.
recall
' attribute was set.
|
inline |
Determine if the 'rocAuc
' attribute was set.
rocAuc
' attribute was set.
|
inline |
Determine if the 'threshold
' attribute was set.
threshold
' attribute was set.
|
static |
Creates a new default instance.
|
inline |
Change the 'accuracy
' attribute.
Accuracy is the fraction of predictions given the correct label. For multiclass this is a micro-averaged metric.
[in] | value | The new value. |
|
inline |
Change the 'f1Score
' attribute.
The F1 score is an average of recall and precision. For multiclass this is a macro-averaged metric.
[in] | value | The new value. |
|
inline |
Change the 'logLoss
' attribute.
Logarithmic Loss. For multiclass this is a macro-averaged metric.
[in] | value | The new value. |
|
inline |
Change the 'precision
' attribute.
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.
[in] | value | The new value. |
|
inline |
Change the 'recall
' attribute.
Recall is the fraction of actual positive labels that were given a positive prediction. For multiclass this is a macro-averaged metric.
[in] | value | The new value. |
|
inline |
Change the 'rocAuc
' attribute.
Area Under a ROC Curve. For multiclass this is a macro-averaged metric.
[in] | value | The new value. |
|
inline |
Change the 'threshold
' attribute.
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.
[in] | value | The new value. |