immuneML.ml_metrics package¶ Submodules¶ immuneML.ml_metrics.Metric module¶ immuneML.ml_metrics.MetricUtil module¶ class immuneML.ml_metrics.MetricUtil.MetricUtil[source]¶ Bases: object static get_metric_fn(metric: ClassificationMetric)[source]¶ static score_for_metric(metric: ClassificationMetric, predicted_y, predicted_proba_y, true_y, classes)[source]¶ Note: when providing label classes, make sure the ‘positive class’ is sorted last. This sorting should be done automatically when accessing Label.values immuneML.ml_metrics.ml_metrics module¶ immuneML.ml_metrics.ml_metrics.f1_score_macro(true_y, predicted_y, sample_weight=None)[source]¶ immuneML.ml_metrics.ml_metrics.f1_score_micro(true_y, predicted_y, sample_weight=None)[source]¶ immuneML.ml_metrics.ml_metrics.f1_score_weighted(true_y, predicted_y, sample_weight=None)[source]¶ immuneML.ml_metrics.ml_metrics.roc_auc_score(true_y, predicted_y, sample_weight=None, labels=None)[source]¶ Module contents¶