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
Release files for fixout 0.1.35
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fixout-0.1.35.tar.gz | 4.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fixout-0.1.35-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 MB
Release files / fixout-0.1.35.tar.gz
| Download URL | fixout-0.1.35.tar.gz |
|---|---|
| Size | 4.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69c941ab1771c192c4e9e2bc22c29a9b7939b64b63cec73f2cf3df8a46d9bbff
|
|
BLAKE2b-256 checksum How to use checksums |
40bd109fcb3c09f7c811fab0a6fe0c2d093f9db63a7cb6bb7430dca368076dee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 24, 2025.
Transparency logRelease files / fixout-0.1.35-py3-none-any.whl
| Download URL | fixout-0.1.35-py3-none-any.whl |
|---|---|
| Size | 4.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bdbbb8caf04cfe56c04145c27ae1082179abd5668f1a69fce1c3b8db18f00e41
|
|
BLAKE2b-256 checksum How to use checksums |
edb1375021d4f258104329a8b31d3a1d618d5ddc8f157be93a382e80539caf09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 24, 2025.
Transparency log