Algorithmic inspection for trustworthy ML models
Project description
Algorithmic inspection for trustworthy ML models
Install
Install the latest version of FixOut from PyPI using
pip install fixout
Getting started
How to start analysing a simple model (let's say you have trained a binary classifier on the German Credit Data):
from fixout.artifact import FixOutArtifact
from fixout.runner import FixOutRunner
fxo = FixOutRunner("Credit Risk Assessment (German Credit)")
# Indicate the sensitive features
sensitive_features = ["foreignworker","statussex"]
# Create a FixOut Artifact with your model and data
fxa = FixOutArtifact(model=model,
training_data=(X_train,y_train),
testing_data=[(X_test,y_test,"Testing")],
features_name=features_name,
sensitive_features=sensitive_features,
dictionary=dic)
Using a Jupyter Notebook
Then run the inspection with the method runJ
fxo.runJ(fxa, show=False)
You can now check the calculated fairness metrics by using the method fairness.
fxo.fairness()
In your quality management code
If you prefer to integrate FixOut into your code, then run the inspection by calling run
fxo.run(fxa, show=True)
In this case, you can access the generated dashboard at http://localhost:5000 ;)
You should be able to see an interface similar to the following
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fixout-0.1.35.tar.gz.
File metadata
- Download URL: fixout-0.1.35.tar.gz
- Upload date:
- Size: 4.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69c941ab1771c192c4e9e2bc22c29a9b7939b64b63cec73f2cf3df8a46d9bbff
|
|
| MD5 |
59cbaf000ffd7cb1d394b14d4c927457
|
|
| BLAKE2b-256 |
40bd109fcb3c09f7c811fab0a6fe0c2d093f9db63a7cb6bb7430dca368076dee
|
Provenance
The following attestation bundles were made for fixout-0.1.35.tar.gz:
Publisher:
python-publish.yml on fixouttech/fixout
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fixout-0.1.35.tar.gz -
Subject digest:
69c941ab1771c192c4e9e2bc22c29a9b7939b64b63cec73f2cf3df8a46d9bbff - Sigstore transparency entry: 202090079
- Sigstore integration time:
-
Permalink:
fixouttech/fixout@09b5b7a0bb56f31a674f29f6e2f5c4bb87707dde -
Branch / Tag:
refs/tags/v0.1.35 - Owner: https://github.com/fixouttech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@09b5b7a0bb56f31a674f29f6e2f5c4bb87707dde -
Trigger Event:
release
-
Statement type:
File details
Details for the file fixout-0.1.35-py3-none-any.whl.
File metadata
- Download URL: fixout-0.1.35-py3-none-any.whl
- Upload date:
- Size: 4.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdbbb8caf04cfe56c04145c27ae1082179abd5668f1a69fce1c3b8db18f00e41
|
|
| MD5 |
a1e0b65727d86fe27c009ddeceff6152
|
|
| BLAKE2b-256 |
edb1375021d4f258104329a8b31d3a1d618d5ddc8f157be93a382e80539caf09
|
Provenance
The following attestation bundles were made for fixout-0.1.35-py3-none-any.whl:
Publisher:
python-publish.yml on fixouttech/fixout
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fixout-0.1.35-py3-none-any.whl -
Subject digest:
bdbbb8caf04cfe56c04145c27ae1082179abd5668f1a69fce1c3b8db18f00e41 - Sigstore transparency entry: 202090081
- Sigstore integration time:
-
Permalink:
fixouttech/fixout@09b5b7a0bb56f31a674f29f6e2f5c4bb87707dde -
Branch / Tag:
refs/tags/v0.1.35 - Owner: https://github.com/fixouttech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@09b5b7a0bb56f31a674f29f6e2f5c4bb87707dde -
Trigger Event:
release
-
Statement type: