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 details)

Uploaded Source

Built Distribution

bias_correction-0.4-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file bias_correction-0.4.tar.gz.

File metadata

  • Download URL: bias_correction-0.4.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for bias_correction-0.4.tar.gz
Algorithm Hash digest
SHA256 969c0b77856ffa1dbd9cf5c827b937dd91abe3850b40a2044c994ffc91eeee06
MD5 b78624033cce5717cbdf23ccc166bfaf
BLAKE2b-256 863564d8b4e85859918593fe71cada241d34c4954cf082f936871bcfb83b1b70

See more details on using hashes here.

File details

Details for the file bias_correction-0.4-py3-none-any.whl.

File metadata

  • Download URL: bias_correction-0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for bias_correction-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b2d9583f41b0c58294b481b647a1c6b8eed7f7c098df49ce5ef40eafaa1f2b4d
MD5 1a7649c86cc4a0e2fb5750e594e8f446
BLAKE2b-256 fc6e02010f17998ebffa78d18ced0bc74c4c092a660a8515aab866084454d1cb

See more details on using hashes here.

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