Skip to main content

A lightweight toolbox for multilabel classification algorithms based on the k-nearest neighbors

Project description

multilabel_knn

Build Status Unit Test & Deploy

multilabel_knn is a lightweight toolbox for the multilabel classifications based on the k-nearest neighbor graphs.

The following algorithms are implemented:

Requirements

  • Python 3.7 or later

Doc

https://multilabel_knn.readthedocs.io/en/latest/

Install

pip install multilabel_knn

multilabel_knn uses faiss library, which has two versions, faiss-cpu and faiss-gpu. As the name stands, faiss-gpu can leverage GPUs, thureby faster if you have GPUs. multilabel_knn uses faiss-cpu by default to avoid unnecessary GPU-related troubles. But, if you have gpus compatible with the faiss-gpu, you can benefit the gpu accelarations by installing faiss-gpu by you can still leverage the GPUs (which is recommended if you have) by installing

with conda:

conda install -c conda-forge faiss-gpu

or with pip:

pip install faiss-gpu

Don't forget to pass gpu_id to the init argument to enable GPU

Maintenance

Code Linting:

conda install -y -c conda-forge pre-commit
pre-commit install

Docsctring: sphinx format

Test:

python -m unittest tests/simple_test.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

multilabel_knn-0.0.1.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

multilabel_knn-0.0.1-py3-none-any.whl (20.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page