You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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).
The text was updated successfully, but these errors were encountered: