- pysteps.verification.detcatscores.det_cat_fct_init(thr, axis=None)#
Initialize a contingency table object.
thr (float) – threshold that is applied to predictions and observations in order to define events vs no events (yes/no).
axis (None or int or tuple of ints, optional) –
Axis or axes along which a score is integrated. The default, axis=None, will integrate all of the elements of the input arrays.
If axis is -1 (or any negative integer), the integration is not performed and scores are computed on all of the elements in the input arrays.
If axis is a tuple of ints, the integration is performed on all of the axes specified in the tuple.
out – The contingency table object.
- Return type: