xskillscore.Contingency.threat_score
- Contingency.threat_score(yes_category=2)
Returns the threat score(s) for dichotomous contingency data.
\[TS = \frac{hits}{hits + misses + \mathrm{false~alarms}}\]- Parameters:
yes_category (value, optional) – The category coordinate value of the category corresponding to ‘yes’
- Returns:
An array containing the threat score(s)
- Return type:
References
https://www.cawcr.gov.au/projects/verification/#Contingency_table