Skip to main content

Wrappers that combat bias in data for machine learning models

Project description

Bias Wrappers

Wrappers for standard multioutput machine learning models that apply progressive calibration to training to produce better testing results, with a bias factor. Used mainly to combat bias on seemingly random/biased data. Default models are Linear Regression with Gradient Descent (for regression) and a standard Naive Bayes (for classification), however, you can input your own machine learning models with the model param.

Fixes

Fixed an issue that happened when importing the package.

Instructions

  1. Install the package with pip:
pip install biaswrappers
  1. Python Quickstart:
# Import Classifier/Regressor
from biaswrappers import classifier, regressor
from biaswrappers.baseline_tests import test_classification, test_regression

# Initialize classifier/regressor and...
# Specify a model class with a fit and predict method as a param.
my_clf = classifier.BiasClassifier() 
my_regressor = regressor.BiasRegressor()

# Use the baseline_tests module for comparable results
test_classification(model=my_regressor) # No return values, just prints results
test_regression(model=my_regressor) # No return values, just prints results

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

biaswrappers-0.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

biaswrappers-0.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file biaswrappers-0.2.tar.gz.

File metadata

  • Download URL: biaswrappers-0.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10

File hashes

Hashes for biaswrappers-0.2.tar.gz
Algorithm Hash digest
SHA256 7a50e9f36b5ce2b14591cc5e1fe1187e2ab03462854b48912ab123e6ec82d67e
MD5 2e6ba28e139860b311c87ce279601ff5
BLAKE2b-256 3994dbd69c350d17bc82f6b901ee4041e605c7d9b0a48bfd1d8b0f13cbbd256e

See more details on using hashes here.

File details

Details for the file biaswrappers-0.2-py3-none-any.whl.

File metadata

  • Download URL: biaswrappers-0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10

File hashes

Hashes for biaswrappers-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 54d4ab335b361fa2c375b2cb9b1af103bddbb10f44bcfb151e2aa1e2f9833fe8
MD5 91129d30fae096822a10ba7a6724ea16
BLAKE2b-256 eabf5e625f045a54e0649901b90bc7a49ed310f62e0b91855852bed8fd27bd7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page