Skip to content

Bug in metric calculation #173

Open
Open
@yifangyin

Description

@yifangyin

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions