whitebox icon indicating copy to clipboard operation
whitebox copied to clipboard

Confusion matrix schema alignment

Open stavrostheocharis opened this issue 3 years ago • 1 comments

Description In schema "PerformanceMetric" there is a misalignment between the BinaryClassificationMetricsPipelineResult and the MultiClassificationMetricsPipelineResult.

In the first one the true_negative, false_positive, etc. are on the outer level. On the other side we have them inside a confusion matrix attribute: confusion_matrix: Dict[str, ConfusionMatrix]

Solution Make them aligned. Add in BinaryClassificationMetricsPipelineResult a new attribute confusion_matrix and include inside the corresponding metrics.

Note: Maybe changes inside other parts of the code may be needed!

stavrostheocharis avatar Feb 17 '23 11:02 stavrostheocharis

Changes will be needed in run_create_alerts_pipeline as well to match the changed schema.

sinnec avatar Mar 09 '23 09:03 sinnec