Skip to main content

GetMLModelEvaluation

This Script is part of the Base Pack.#

Finds a threshold for ML model, and performs an evaluation based on it

Script Data#


NameDescription
Script Typepython3
Tagsml
Cortex XSOAR Version5.0.0

Inputs#


Argument NameDescription
yTrueA list of labels of the test set
yPredA list of dictionaries contain probability predictions for all classes
targetPrecisionminimum precision of all classes, ranges 0-1
targetRecallminimum recall of all classes, ranges 0-1
detailedOutputif set to 'true', the output will include a full explanation of the confidence threshold meaning

Outputs#


PathDescriptionType
GetMLModelEvaluation.ThresholdThe found thresholds which meets the conditions of precision and recallString
GetMLModelEvaluation.ConfusionMatrixAtThresholdThe model evaluation confusion matrix for mails above the threshold.Unknown
GetMLModelEvaluation.MetricsMetrics per each class (includes precision, true positive, coverage, etc.)Unknown