true_skill_score#
- rojak.turbulence.metrics.true_skill_score(roc_curve: BinaryClassificationResult) Array [source]#
True Skill Score (TSS) statistic
The TSS is defined in Wikipedia as:
\[\begin{align} TSS &= \text{sensitivity} + \text{specificity} - 1 \ &= \frac{\text{TP}}{\text{TP} + \text{FP}} + \frac{\text{TN}}{\text{TN} + \text{FP}} - 1 \end{align}\]where \(TP\) is the number of true positives, \(TN\) the number of true negatives, \(FP\) the number of false positives, \(FN\) the number of false negatives.
This is also the definition used in [Sharman2006]
- Parameters:
roc_curve (BinaryClassificationResult)
- Return type: