Metric Class

Defines all metrics supported by classification and regression.

Inheritance
builtins.object
Metric

Methods

pretty

Verbose names for metrics.

pretty

Verbose names for metrics.

pretty(metric)

Parameters

cls
metric

Attributes

AUCBinary

AUCBinary = 'AUC_binary'

AUCMacro

AUCMacro = 'AUC_macro'

AUCMicro

AUCMicro = 'AUC_micro'

AUCWeighted

AUCWeighted = 'AUC_weighted'

Accuracy

Accuracy = 'accuracy'

AccuracyTable

AccuracyTable = 'accuracy_table'

AvgPrecisionBinary

AvgPrecisionBinary = 'average_precision_score_binary'

AvgPrecisionMacro

AvgPrecisionMacro = 'average_precision_score_macro'

AvgPrecisionMicro

AvgPrecisionMicro = 'average_precision_score_micro'

AvgPrecisionWeighted

AvgPrecisionWeighted = 'average_precision_score_weighted'

BalancedAccuracy

BalancedAccuracy = 'balanced_accuracy'

CLASSIFICATION_BALANCED_SET

CLASSIFICATION_BALANCED_SET = {'average_precision_score_macro', 'f1_score_macro', 'AUC_macro', 'balanced_accuracy', 'recall_score_macro', 'precision_score_macro', 'norm_macro_recall'}

CLASSIFICATION_BINARY_SET

CLASSIFICATION_BINARY_SET = {'f1_score_binary', 'recall_score_binary', 'AUC_binary', 'precision_score_binary', 'average_precision_score_binary'}

CLASSIFICATION_PRIMARY_SET

CLASSIFICATION_PRIMARY_SET = {'accuracy', 'AUC_weighted', 'precision_score_weighted', 'average_precision_score_weighted', 'norm_macro_recall'}

CLASSIFICATION_SET

CLASSIFICATION_SET = {'average_precision_score_macro', 'f1_score_binary', 'precision_score_weighted', 'recall_score_micro', 'precision_score_micro', 'recall_score_macro', 'log_loss', 'precision_score_binary', 'recall_score_weighted', 'f1_score_micro', 'precision_score_macro', 'average_precision_score_weighted', 'average_precision_score_binary', 'f1_score_weighted', 'norm_macro_recall', 'accuracy', 'confusion_matrix', 'AUC_micro', 'f1_score_macro', 'average_precision_score_micro', 'AUC_macro', 'AUC_weighted', 'recall_score_binary', 'balanced_accuracy', 'accuracy_table', 'AUC_binary', 'matthews_correlation', 'weighted_accuracy'}

CLIPS_NEG

CLIPS_NEG = {'spearman_correlation': -1, 'explained_variance': -1, 'r2_score': -1}

CLIPS_POS

CLIPS_POS = {'log_loss': 1, 'normalized_mean_absolute_error': 1, 'normalized_median_absolute_error': 1, 'normalized_root_mean_squared_error': 1, 'normalized_root_mean_squared_log_error': 1, 'train time': 1200}

ConfusionMatrix

ConfusionMatrix = 'confusion_matrix'

ExplainedVariance

ExplainedVariance = 'explained_variance'

F1Binary

F1Binary = 'f1_score_binary'

F1Macro

F1Macro = 'f1_score_macro'

F1Micro

F1Micro = 'f1_score_micro'

F1Weighted

F1Weighted = 'f1_score_weighted'

FORECAST_SET

FORECAST_SET = {'forecast_residuals', 'forecast_validate_table', 'forecast_mean_absolute_percentage_error', 'forecast_train_table'}

FULL_SET

FULL_SET = {'f1_score_binary', 'mean_absolute_error', 'recall_score_micro', 'precision_score_micro', 'recall_score_macro', 'f1_score_micro', 'precision_score_macro', 'average_precision_score_weighted', 'normalized_root_mean_squared_error', 'normalized_median_absolute_error', 'normalized_root_mean_squared_log_error', 'forecast_residuals', 'AUC_micro', 'average_precision_score_micro', 'AUC_weighted', 'recall_score_binary', 'forecast_mean_absolute_percentage_error', 'AUC_binary', 'weighted_accuracy', 'root_mean_squared_error', 'root_mean_squared_log_error', 'r2_score', 'median_absolute_error', 'mean_average_precision', 'normalized_mean_absolute_error', 'average_precision_score_macro', 'precision_score_weighted', 'log_loss', 'precision_score_binary', 'explained_variance', 'recall_score_weighted', 'average_precision_score_binary', 'f1_score_weighted', 'residuals', 'norm_macro_recall', 'spearman_correlation', 'accuracy', 'forecast_validate_table', 'confusion_matrix', 'f1_score_macro', 'AUC_macro', 'accuracy_table', 'balanced_accuracy', 'matthews_correlation', 'predicted_true', 'mean_absolute_percentage_error', 'forecast_train_table'}

ForecastMAPE

ForecastMAPE = 'forecast_mean_absolute_percentage_error'

ForecastResiduals

ForecastResiduals = 'forecast_residuals'

ForecastSMAPE

ForecastSMAPE = 'forecast_symmetric_mean_absolute_percentage_error'

ForecastTrainTable

ForecastTrainTable = 'forecast_train_table'

ForecastValidateTable

ForecastValidateTable = 'forecast_validate_table'

IMAGE_CLASSIFICATION_MULTILABEL_PRIMARY_SET

IMAGE_CLASSIFICATION_MULTILABEL_PRIMARY_SET = {'iou'}

IMAGE_CLASSIFICATION_PRIMARY_SET

IMAGE_CLASSIFICATION_PRIMARY_SET = {'accuracy'}

IMAGE_OBJECT_DETECTION_PRIMARY_SET

IMAGE_OBJECT_DETECTION_PRIMARY_SET = {'mean_average_precision'}

IMAGE_OBJECT_DETECTION_SET

IMAGE_OBJECT_DETECTION_SET = {'mean_average_precision'}

IOU

IOU = 'iou'

LogLoss

LogLoss = 'log_loss'

MAPE

MAPE = 'mean_absolute_percentage_error'

MatthewsCorrelation

MatthewsCorrelation = 'matthews_correlation'

MeanAbsError

MeanAbsError = 'mean_absolute_error'

MeanAveragePrecision

MeanAveragePrecision = 'mean_average_precision'

MedianAbsError

MedianAbsError = 'median_absolute_error'

NONSCALAR_CLASSIFICATION_SET

NONSCALAR_CLASSIFICATION_SET = {'accuracy_table', 'confusion_matrix'}

NONSCALAR_FORECAST_SET

NONSCALAR_FORECAST_SET = {'forecast_residuals', 'forecast_validate_table', 'forecast_mean_absolute_percentage_error', 'forecast_train_table'}

NONSCALAR_FULL_SET

NONSCALAR_FULL_SET = {'forecast_residuals', 'forecast_validate_table', 'confusion_matrix', 'accuracy_table', 'forecast_mean_absolute_percentage_error', 'predicted_true', 'residuals', 'forecast_train_table'}

NONSCALAR_REGRESSION_SET

NONSCALAR_REGRESSION_SET = {'residuals', 'predicted_true'}

NormMacroRecall

NormMacroRecall = 'norm_macro_recall'

NormMeanAbsError

NormMeanAbsError = 'normalized_mean_absolute_error'

NormMedianAbsError

NormMedianAbsError = 'normalized_median_absolute_error'

NormRMSE

NormRMSE = 'normalized_root_mean_squared_error'

NormRMSLE

NormRMSLE = 'normalized_root_mean_squared_log_error'

PrecisionBinary

PrecisionBinary = 'precision_score_binary'

PrecisionMacro

PrecisionMacro = 'precision_score_macro'

PrecisionMicro

PrecisionMicro = 'precision_score_micro'

PrecisionWeighted

PrecisionWeighted = 'precision_score_weighted'

PredictedTrue

PredictedTrue = 'predicted_true'

R2Score

R2Score = 'r2_score'

REGRESSION_PRIMARY_SET

REGRESSION_PRIMARY_SET = {'r2_score', 'spearman_correlation', 'normalized_root_mean_squared_error', 'normalized_mean_absolute_error'}

REGRESSION_SET

REGRESSION_SET = {'normalized_root_mean_squared_log_error', 'normalized_mean_absolute_error', 'mean_absolute_error', 'predicted_true', 'mean_absolute_percentage_error', 'explained_variance', 'root_mean_squared_error', 'root_mean_squared_log_error', 'normalized_median_absolute_error', 'residuals', 'spearman_correlation', 'r2_score', 'normalized_root_mean_squared_error', 'median_absolute_error'}

RMSE

RMSE = 'root_mean_squared_error'

RMSLE

RMSLE = 'root_mean_squared_log_error'

RecallBinary

RecallBinary = 'recall_score_binary'

RecallMacro

RecallMacro = 'recall_score_macro'

RecallMicro

RecallMicro = 'recall_score_micro'

RecallWeighted

RecallWeighted = 'recall_score_weighted'

Residuals

Residuals = 'residuals'

SAMPLE_WEIGHTS_UNSUPPORTED_SET

SAMPLE_WEIGHTS_UNSUPPORTED_SET = {'weighted_accuracy', 'spearman_correlation', 'median_absolute_error', 'normalized_median_absolute_error'}

SCALAR_CLASSIFICATION_SET

SCALAR_CLASSIFICATION_SET = {'f1_score_binary', 'recall_score_micro', 'precision_score_micro', 'recall_score_macro', 'f1_score_micro', 'precision_score_macro', 'average_precision_score_weighted', 'AUC_micro', 'average_precision_score_micro', 'AUC_weighted', 'recall_score_binary', 'AUC_binary', 'weighted_accuracy', 'average_precision_score_macro', 'precision_score_weighted', 'log_loss', 'precision_score_binary', 'recall_score_weighted', 'average_precision_score_binary', 'f1_score_weighted', 'norm_macro_recall', 'accuracy', 'f1_score_macro', 'AUC_macro', 'balanced_accuracy', 'matthews_correlation'}

SCALAR_FULL_SET

SCALAR_FULL_SET = {'normalized_mean_absolute_error', 'average_precision_score_macro', 'f1_score_binary', 'precision_score_weighted', 'mean_absolute_error', 'recall_score_micro', 'precision_score_micro', 'recall_score_macro', 'log_loss', 'precision_score_binary', 'recall_score_weighted', 'f1_score_micro', 'precision_score_macro', 'average_precision_score_weighted', 'average_precision_score_binary', 'f1_score_weighted', 'explained_variance', 'norm_macro_recall', 'spearman_correlation', 'normalized_root_mean_squared_error', 'normalized_median_absolute_error', 'accuracy', 'normalized_root_mean_squared_log_error', 'median_absolute_error', 'AUC_micro', 'f1_score_macro', 'average_precision_score_micro', 'AUC_macro', 'AUC_weighted', 'recall_score_binary', 'balanced_accuracy', 'AUC_binary', 'matthews_correlation', 'weighted_accuracy', 'mean_absolute_percentage_error', 'root_mean_squared_error', 'root_mean_squared_log_error', 'r2_score'}

SCALAR_FULL_SET_TIME

SCALAR_FULL_SET_TIME = {'train time', 'f1_score_binary', 'mean_absolute_error', 'recall_score_micro', 'precision_score_micro', 'recall_score_macro', 'f1_score_micro', 'precision_score_macro', 'average_precision_score_weighted', 'fit_time', 'normalized_root_mean_squared_error', 'normalized_median_absolute_error', 'normalized_root_mean_squared_log_error', 'AUC_micro', 'average_precision_score_micro', 'AUC_weighted', 'recall_score_binary', 'AUC_binary', 'weighted_accuracy', 'root_mean_squared_error', 'root_mean_squared_log_error', 'median_absolute_error', 'r2_score', 'normalized_mean_absolute_error', 'average_precision_score_macro', 'precision_score_weighted', 'log_loss', 'precision_score_binary', 'explained_variance', 'recall_score_weighted', 'average_precision_score_binary', 'f1_score_weighted', 'norm_macro_recall', 'spearman_correlation', 'accuracy', 'f1_score_macro', 'AUC_macro', 'balanced_accuracy', 'matthews_correlation', 'mean_absolute_percentage_error', 'predict_time'}

SCALAR_REGRESSION_SET

SCALAR_REGRESSION_SET = {'normalized_root_mean_squared_log_error', 'normalized_mean_absolute_error', 'mean_absolute_error', 'mean_absolute_percentage_error', 'explained_variance', 'root_mean_squared_error', 'root_mean_squared_log_error', 'normalized_median_absolute_error', 'spearman_correlation', 'r2_score', 'normalized_root_mean_squared_error', 'median_absolute_error'}

SCHEMA_TYPE_ACCURACY_TABLE

SCHEMA_TYPE_ACCURACY_TABLE = 'accuracy_table'

SCHEMA_TYPE_CONFUSION_MATRIX

SCHEMA_TYPE_CONFUSION_MATRIX = 'confusion_matrix'

SCHEMA_TYPE_MAPE

SCHEMA_TYPE_MAPE = 'mape_table'

SCHEMA_TYPE_PREDICTIONS

SCHEMA_TYPE_PREDICTIONS = 'predictions'

SCHEMA_TYPE_RESIDUALS

SCHEMA_TYPE_RESIDUALS = 'residuals'

SCHEMA_TYPE_SMAPE

SCHEMA_TYPE_SMAPE = 'smape_table'

SMAPE

SMAPE = 'symmetric_mean_absolute_percentage_error'

Spearman

Spearman = 'spearman_correlation'

TEXT_CLASSIFICATION_MULTILABEL_PRIMARY_SET

TEXT_CLASSIFICATION_MULTILABEL_PRIMARY_SET = {'accuracy'}

TEXT_CLASSIFICATION_PRIMARY_SET

TEXT_CLASSIFICATION_PRIMARY_SET = {'accuracy', 'AUC_weighted', 'precision_score_weighted'}

TEXT_NER_PRIMARY_SET

TEXT_NER_PRIMARY_SET = {'accuracy'}

WeightedAccuracy

WeightedAccuracy = 'weighted_accuracy'