Computes Kendall's coefficient of concordance
Project description
kendall-w
Author: Ugo Loobuyck
Overview
Computes Kendall's coefficient of concordance for inter-annotator agreement in the case of item ranking between more than two annotators.
Installation
To install use pip:
$ pip install kendall-w
Or clone the repo:
$ git clone https://github.com/ugolbck/kendall-w.git
$ python setup.py install
Usage
import kendall_w as kw
annotations = [
[1, 1, 1, 2],
[2, 2, 2, 3],
[3, 3, 3, 1],
]
W = kw.compute_w(annotations) # returns 0.4375 (fair overall agreement)
Contributions
All contributions are welcome.
How to help?
- Fork this repository to your GitHub account
- Clone the forked repositery to local
- Code something and push to your branch
- Create a pull request from your repository
TODO:
- Handle
pandas.DataFrameas an input with the instructions in the main file - Use numpy for faster computation?
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
kendall-w-1.0.0.tar.gz
(3.3 kB
view details)
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 kendall-w-1.0.0.tar.gz.
File metadata
- Download URL: kendall-w-1.0.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
353815f58a1f412238fd15be989860db3a1f0b350573dca8ec8f2fdd600a0c5b
|
|
| MD5 |
645ca4e6982567e8fe2e690ebd8f6ade
|
|
| BLAKE2b-256 |
399f09d6829860b8fd25d6098fe10fecbe88bca202498749ec405d84c17b418d
|
File details
Details for the file kendall_w-1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: kendall_w-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d555081ea1b1fa7345a7e24aaedbd079520d566953e2b7e31d91ee68337cca5
|
|
| MD5 |
35f8f0b0687e6fdd53c225196962649e
|
|
| BLAKE2b-256 |
c8f4d25d5fcfa6e771cb930e1d132bd6e7fc306060ffd921b5c4534a8631143c
|