semvec/pypi-packages huggingface dataset:
irrCAC 0.4.4
Degree of agreement among raters.
Requires Python: <4.0,>=3.9
Keywords: Chance-corrected agreement coefficients, Inter-rater reliability, Inter-annotator agreement

Chance-corrected Agreement Coefficients
=======================================

.. image:: https://readthedocs.org/projects/irrcac/badge/?version=latest
  :target: https://irrcac.readthedocs.io/en/latest/?badge=latest
  :alt: Documentation Status

.. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
  :target: https://github.com/pre-commit/pre-commit
  :alt: pre-commit

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
  :target: https://github.com/psf/black

The **irrCAC** is a Python package that provides several functions for
calculating various chance-corrected agreement coefficients. This package
closely follows the general framework of inter-rater reliability assessment
presented by Gwet (2014).

The functionality covers calculations for various chance-corrected agreement
coefficients (CAC) among 2 or more raters. Among the CAC coefficients covered
are Cohen's kappa, Conger's kappa, Fleiss' kappa, Brennan-Prediger coefficient,
Gwet's AC1/AC2 coefficients, and Krippendorff's alpha. Multiple sets of weights
are proposed for computing weighted analyses.

The functions included in this package can handle 2 types of input data. Those
types with the corresponding coefficients are in the following list:

1. Contingency Table

  1. Brennar-Prediger
  2. Cohen's kappa
  3. Gwet AC1/AC2
  4. Krippendorff's Alpha
  5. Percent Agreement
  6. Schott's Pi

2. Raw Data

  1. Fleiss' kappa
  2. Gwet AC1/AC2
  3. Krippendorff's Alpha
  4. Conger's kappa
  5. Brennar-Prediger

.. note::
   All of these statistical procedures are described in details in
   Gwet, K.L. (2014,ISBN:978-0970806284):
   "Handbook of Inter-Rater Reliability," 4th edition, Advanced Analytics, LLC.

   This package is a port *(with permission)* to Python of the
   `irrCAC <https://github.com/kgwet/irrCAC>`_ library for R by Gwet, K.L.

.. important::
   This is a **work in progress** and *does not* have (yet) the full
   functionality found in the R library.

Installation
------------
To install the package, run:

.. code:: bash

    pip install irrCAC

Developers
----------
To use the code for development it is recommended to install
`poetry <https://python-poetry.org/>`_ and run:

.. code:: bash

    poetry install

And add the `pre-commit` hook:

.. code:: bash

   pre-commit install

and update the hooks:

.. code:: bash

   pre-commit autoupdate

To update the project dependencies, run:

.. code:: bash

   poetry update

Next run the tests:

.. code:: bash

    poetry run pytest

There is also a config file for `tox <https://tox.readthedocs.io/en/latest/>`_
so you can automatically run the tests for various python versions like this:

.. code:: bash

    tox

Documentation
-------------
The documentation of the project is available at the following page:
http://irrcac.readthedocs.io/
python-json-log-formatter 3.7.0
Supplements a default formatter configuration for machine-readable JSON logging and applies it
Requires Python: >=3.9

# python-logger

<p align="center">
    <a href="https://github.com/IBM/python-json-log-formatter/blob/master/LICENSE" alt="Licence">
        <img src="https://img.shields.io/hexpm/l/apa" /></a>
    <a href="https://pypi.org/project/python-json-log-formatter/" alt="PyPi">
        <img src="https://img.shields.io/pypi/v/python-json-log-formatter" /></a>
    <a href="https://github.com/IBM/python-json-log-formatter/releases" alt="GitHub release (latest SemVer)">
        <img src="https://img.shields.io/github/v/release/IBM/python-json-log-formatter" /></a>
</p>

Supplements a default formatter configuration for machine-readable JSON logging and applies it.

This module should be included as a sub-module in python projects with logging.
Please avoid copy-pasting as no updates can be supplied that way.

## Usage

1. Install the module via the `requirements.txt` or per CLI: `pip install python-json-log-formatter`
2. Please include the `PythonLogger` module, using a `from module import class` statement.
3. After the imports, please declare a version constant. \
    This constant should use [semantic versioning](https://semver.org/#semantic-versioning-specification-semver), with a prepended date `(YYYY/MM/DD)`.\
    Other examples, without the date, can be found [here](https://ihateregex.io/expr/semver/)
4. Before any argument parsing or any other logging, the logger should be initialized
5. In **EVERY** file, the logger needs to be imported using `LOGGER = logging.getLogger(__name__)`

```python
from python_json_log_formatter import PythonLogger
import logging

VERSION = "1.0.0 (2022/11/24)"
PythonLogger.setup_logger(VERSION)

LOGGER = logging.getLogger(__name__)
```

Optionally, it is also possible to change the log level:

```python
from python_json_log_formatter import PythonLogger
import logging

VERSION = "1.0.0 (2022/11/24)"
PythonLogger.setup_logger(VERSION, logging.DEBUG)

LOGGER = logging.getLogger(__name__)
```

## Features

Sets the logging format for the root logger and thus for every child logger.
In EVERY file where logging happens, please use `LOGGER = logging.getLogger(__name__)` to get an individual logger.
Allows printing exception information on any logging level, not only on the `EXCEPTION` level but also for `INFO` or `DEBUG`.
Supply `exec_info` to print these.

Sets `pipeline_status` and `job_status` to `failed` on `CRITICAL`, supports minor logging levels (41, etc).

To disable the logging on local machines, supply `disable_log_formatting=True` when configuring the logger.
Alternatively, without code changes, you can supply the ENV var `DISABLE_LOG_FORMATTING"=True` to generally disable it.

Every attribute of the LogRecord will be included in the formatted message unless specified in the `excluded_logging_context_keys` list.