CLANA is a toolkit for classifier analysis.
Project description
clana
clana is a toolkit for classifier analysis. It specifies some file formats
and comes with some tools for typical tasks of classifier analysis.
Installation
The recommended way to install clana is:
$ pip install clana --user
If you want the latest version:
$ git clone https://github.com/MartinThoma/clana.git; cd clana
$ pip install -e . --user
Usage
clana --help
Usage: clana [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
distribution Get the distribution of classes in a dataset.
get-cm Calculate the confusion matrix (CSV inputs).
get-cm-simple Calculate the confusion matrix (one label per...
visualize Optimize confusion matrix.
The visualize command gives you images like this:
Data distribution
$ clana distribution --gt gt.csv --labels labels.csv [--out out/] [--long]
prints one line per label, e.g.
60% cat (56789 elements)
20% dog (12345 elements)
5% mouse (1337 elements)
1% tux (314 elements)
If --out is specified, it creates a horizontal bar chart. The first bar is
the most common class, the second bar is the second most common class, ...
It uses the short labels, except --long is added to the command.
Metrics
$ clana metrics --gt gt.csv --preds preds.csv
gives the following metrics by
- Line 1: Accuracy
- Line 2: Precision
- Line 3: Recall
- Line 4: F1-Score
- Line 5: Mean accuracy
Visualizations
See visualizations
Development
Check tests with tox.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clana-0.3.0.tar.gz.
File metadata
- Download URL: clana-0.3.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f6f3d7af6db8b4c7f39c58a086af689fe1f5a71bffdf5d4ea352dc21b942f2f
|
|
| MD5 |
b716743d5893c34f2c7bc7b86ee3bc86
|
|
| BLAKE2b-256 |
fd89777237f6b4a00802d2863eb1722d711d525abb2f708161da1f270ad158b1
|
File details
Details for the file clana-0.3.0-py3-none-any.whl.
File metadata
- Download URL: clana-0.3.0-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd51a0625e68db534047a1d78680c987e039aa14c22d5786c7f77ea9c1651491
|
|
| MD5 |
c78f9c58b12ba01cbeb85dec63c5a170
|
|
| BLAKE2b-256 |
7ad13ce277d32ea507838dfda1635317c2246544af47ba3154e2ecda3a3161de
|