ASUS-AICS / LibMultiLabel

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

Make nn dependencies optional #348

Closed Sinacam closed 10 months ago

Sinacam commented 10 months ago

What does this PR do?

Make nn dependencies optional. For installing from PyPI

pip install libmutlilabel      # installs linear dependencies only
pip install libmultilabel[nn]  # installs nn dependencies as well

PyPI has no parameter search version because no code in the library uses ray.

Similarly,

pip install -r requirements.txt     # installs linear dependencies only
pip install -r requirements_nn.txt  # installs nn dependencies as well

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.