Skip to content

Label match F score computation with the predicted and ground truth are all zeros #17

@phoxis

Description

@phoxis

Run the following

y <- create_subset (toyml, rows = 1:4);
y$dataset[1,y$labels$index] <- c (0, 0, 0, 0, 0);
y1 <- y$dataset[,y$labels$index];
multilabel_evaluate (y, y1);

y and y has identical label assignment. But the macro-F1 and other scores are not 1. Probably because the label y3 is all zeros, and therefore it translates to 0. This should be 1 in such a case.

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