Skip to main content

a Regression Wrapper that combats 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), however, you can input your own machine learning models with the model param.

Fixes

Fixed Array/List Contradiction in regression, removed classifier for code compatibility, and removed a few print statements.

Removed classifier because the formula used only benefits regression problems.

Instructions

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

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

# Use the baseline_tests module for comparable 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.3.1.tar.gz (3.8 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.3.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: biaswrappers-0.3.1.tar.gz
  • Upload date:
  • Size: 3.8 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.3.1.tar.gz
Algorithm Hash digest
SHA256 6ff9792fda655a653d625f6a1ce9ba7fdaf85a32259629274f31badd5d1a10f0
MD5 a89d187639aabbc1dc08693f83f131b3
BLAKE2b-256 fa7da2a3f7b9e22fc1ed9d61920813dbdd4370320e9d6c2163b6bee8528cda49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: biaswrappers-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab25bb965a7c614fa38546015d817b90e300c8f4db0cc6b1cd7f6caffdfc21e6
MD5 58aa7f3ca76ef14442808fae88f24fc1
BLAKE2b-256 fa928159ae439638d3201b21d7e1ac3e6f87818389f0249e9b2cfd0ea2d55833

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