Skip to main content

Algorithmic inspection for trustworthy ML models

Project description

fixout_logo

Algorithmic inspection for trustworthy ML models

PyPi version Python Version PyPI Downloads License Documentation Status

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()

Fairness metrics

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

FixOut interface

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

fixout-0.1.36a0.tar.gz (4.6 MB view details)

Uploaded Source

Built Distribution

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

fixout-0.1.36a0-py3-none-any.whl (4.8 MB view details)

Uploaded Python 3

File details

Details for the file fixout-0.1.36a0.tar.gz.

File metadata

  • Download URL: fixout-0.1.36a0.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

Hashes for fixout-0.1.36a0.tar.gz
Algorithm Hash digest
SHA256 7597802100a6836ee9a56800d8edaa5fdd7d5c94e89ebc5786073d0b4f1a96a9
MD5 17c24b791419cea15750d5e6bff39c5b
BLAKE2b-256 6004e0c660dc3b157741877c302821bba00d13ab2a01e93a2fe2f41316bb28a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixout-0.1.36a0.tar.gz:

Publisher: python-publish.yml on fixouttech/fixout

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fixout-0.1.36a0-py3-none-any.whl.

File metadata

  • Download URL: fixout-0.1.36a0-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

Hashes for fixout-0.1.36a0-py3-none-any.whl
Algorithm Hash digest
SHA256 2229f14f3738762cfd8e4fac9b51b45db8147ff38a97bd780ced4388b7728c02
MD5 e6fb7e75e9a6155e0848bbb721899d36
BLAKE2b-256 58d38b74128dc3d9733afe6ba2df7248e945375138ac5d263655f942bcd686c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixout-0.1.36a0-py3-none-any.whl:

Publisher: python-publish.yml on fixouttech/fixout

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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