Skip to main content

Computes Kendall's coefficient of concordance

Project description

kendall-w

version codecov Build Status python downloads

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?

  1. Fork this repository to your GitHub account
  2. Clone the forked repositery to local
  3. Code something and push to your branch
  4. Create a pull request from your repository

TODO:

  • Handle pandas.DataFrame as 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 hashes)

Uploaded Source

Built Distribution

kendall_w-1.0.0-py2.py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 2 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