No project description provided
Project description
smclarify
Amazon Sagemaker Clarify
Bias detection and mitigation for datasets and models.
Installation
To install the package from PIP you can simply do:
pip install smclarify
You can see examples on running the Bias metrics on the notebooks in the examples folder.
Terminology
Facet
A facet is column or feature that will be used to measure bias against. A facet can have value(s) that designates that sample as "sensitive".
Label
The label is a column or feature which is the target for training a machine learning model. The label can have value(s) that designates that sample as having a "positive" outcome.
Bias measure
A bias measure is a function that returns a bias metric.
Bias metric
A bias metric is a numerical value indicating the level of bias detected as determined by a particular bias measure.
Bias report
A collection of bias metrics for a given dataset or a combination of a dataset and model.
Development
It's recommended that you setup a virtualenv.
virtualenv -p(which python3) venv
source venv/bin/activate.fish
pip install -e .[test]
cd src/
../devtool all
For running unit tests, do pytest --pspec
. If you are using PyCharm, and cannot see the green run button next to the tests, open Preferences
-> Tools
-> Python Integrated tools
, and set default test runner to pytest
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file smclarify-0.2-py3-none-any.whl
.
File metadata
- Download URL: smclarify-0.2-py3-none-any.whl
- Upload date:
- Size: 24.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bba4c4856bcfd0a439848402a822248dae6725d0fa7ce3995f1d015d7d2ebb7 |
|
MD5 | 6cf71264883938df549c25713451b06a |
|
BLAKE2b-256 | 29c983ef3cee1e300da01b5b9fdd0e41d75074fe71a23e7d675af7d26c03180e |