ASUS-AICS / LibMultiLabel

A library for multi-class and multi-label classification
MIT License
152 stars 30 forks source link

Check if k >= num_classes #338

Open donglihe-hub opened 1 year ago

donglihe-hub commented 1 year ago

What does this PR do?

Check if k >= num_classes (align with the behavior in nn)

This behavior is not exactly correct. For multilabel datasets, we should allow k == num_class.

Test CLI & API (bash tests/autotest.sh)

Test APIs used by main.py.

Check API Document

If any new APIs are added, please check if the description of the APIs is added to API document.

Test quickstart & API (bash tests/docs/test_changed_document.sh)

If any APIs in quickstarts or tutorials are modified, please run this test to check if the current examples can run correctly after the modified APIs are released.