Skip to content

failure if all predictions are wrong #13

@behrica

Description

@behrica

I get a division-y-zero exception doing any of:

(mcm/macro-avg-fmeasure [:a] [:b] [:a :b])
(mcm/micro-avg-fmeasure [:a] [:b] [:a :b])

for reference, sklearn returns 0.0:

>>> import sklearn
>>> sklearn.metrics.f1_score([0],[1], average='macro')
0.0
>>> sklearn.metrics.f1_score([0],[1], average='micro')
0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions