Skip to content

thematic-accuracy-land-cover: Address UndefinedMetricWarning #899

@matthiasschaub

Description

@matthiasschaub

When running tests the following warning is issued:

  /home/matthias/.cache/pypoetry/virtualenvs/ohsome-quality-api-KPaXoOaM-py3.11/lib64/python3.11/site-packages/sklearn/metrics/_c
lassification.py:1565: UndefinedMetricWarning:
  
  Precision is ill-defined and being set to 0.0 in labels with no predicted samples. Use `zero_division` parameter to control thi
s behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions