WorldCereal / worldcereal-classification

This repository contains the classification module of the WorldCereal system.
https://esa-worldcereal.org/
MIT License
37 stars 4 forks source link

Handle edge case in demo when user only selects one crop type #168

Closed kvantricht closed 1 month ago

kvantricht commented 2 months ago

Currently, when a user selects just one croptype from the interface, CatBoost raises an exception because in this case only two classes are present, resulting in picking the "LogLoss" which expects classes [0, 1] instead of the string classes we have now. This bug needs to be fixed.

kvantricht commented 1 month ago

This now works as expected.