Skip to content

Commit

Permalink
verify: moved threat score location in Contingency2x2 summary output
Browse files Browse the repository at this point in the history
Threat score is an accuracy metric, equitable threat score is a skill score
using threat score as the accuracy metric and TS for a random forecast as the
reference. Threat score was therefore moved to 'stats' while ETS stayed in
'skill' on printing the verbose summary output.
  • Loading branch information
drsteve committed May 31, 2018
1 parent efd0420 commit da03c8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,8 +924,8 @@ def summary(self, verbose=False, ci=None):
if verbose:
print('Contingency2x2([\n [{:6g},{:6g}],\n [{:6g},{:6g}])\n'.format(a,b,c,d))
qual = ['MajorityClassFraction', 'MatthewsCC']
stats = ['Bias', 'FAR', 'PC', 'POFD', 'POD', 'OddsRatio']
skill = ['HeidkeScore','PeirceScore','ThreatScore','EquitableThreatScore','YuleQ']
stats = ['Bias', 'FAR', 'PC', 'POFD', 'POD', 'ThreatScore', 'OddsRatio']
skill = ['HeidkeScore','PeirceScore','EquitableThreatScore','YuleQ']
print("Summary Statistics")
print("==================")
for key in stats:
Expand Down

0 comments on commit da03c8e

Please # to comment.