Open
Description
In OpenSTL/openstl/core/metrics.py, 't' in the input represents the threshold, but this 't' got overwritten by the first line 't = np.greater_equal(x, t).astype(np.float32)' where 't' refers to 'true' in the output. The input 't' should be renamed.
Also in line 138: t, p = _threshold(pred[i], true[i], threshold) the order of inputs is wrong. It should be t, p = _threshold(true[i], pred[i], threshold).
Metadata
Metadata
Assignees
Labels
No labels