Skip to main content

python library for bias_correction

Project description


PyPI version License Downloads Code style: black


About

The module bias_correction consists of functions to perform bias correction of datasets to remove biases across datasets. Implemented methods include quantile mapping, modified quantile mapping , scaled distribution mapping (Gamma and Normal Corrections).

Installation

pip install bias-correction

Documentation

Latest documentation is available here.

Usage

bias_correction is easy to use. Just import:

from bias_correction import BiasCorrection

Instantiate the bias correction class as:

bc = BiasCorrection(reference, model, data_to_be_corrected)

Perform correction specifying the method to be used:

corrected = bc.correct(method='gamma_mapping')

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

bias_correction-0.4.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

bias_correction-0.4-py3-none-any.whl (5.2 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