immuneML.ml_metrics package

Submodules

immuneML.ml_metrics.Metric module

class immuneML.ml_metrics.Metric.Metric(value)[source]

Bases: enum.Enum

An enumeration.

ACCURACY = 'accuracy_score'
AUC = 'roc_auc_score'
BALANCED_ACCURACY = 'balanced_accuracy_score'
CONFUSION_MATRIX = 'confusion_matrix'
F1_MACRO = 'f1_score_macro'
F1_MICRO = 'f1_score_micro'
F1_WEIGHTED = 'f1_score_weighted'
LOG_LOSS = 'log_loss'
PRECISION = 'precision_score'
RECALL = 'recall_score'
static get_probability_based_metric_types()[source]
static get_search_criterion(metric)[source]
static get_sklearn_score_name(metric)[source]

immuneML.ml_metrics.ml_metrics module

immuneML.ml_metrics.ml_metrics.f1_score_macro(true_y, predicted_y)[source]
immuneML.ml_metrics.ml_metrics.f1_score_micro(true_y, predicted_y)[source]
immuneML.ml_metrics.ml_metrics.f1_score_weighted(true_y, predicted_y)[source]
immuneML.ml_metrics.ml_metrics.roc_auc_score(true_y, predicted_y)[source]

Module contents