Skip to main content

Desktop app version of the MAI-Bias toolkit.

Project description

MAI-BIAS modules

Integration Tests Coverage Contributor Covenant

Quickly develop and locally run MAI-BIAS toolkit modules.

This repository holds the mammoth-commons library with supporting datatypes and decorators shared by various toolkit modules. It also hosts a catalogue of dataset loaders, model loaders, and fairness analysis and mitigation modules. Finally, find ad desktop application that runs the modules in your local machine.

logo

🔬 Run locally

Depending on your operating system, replace python with python3 below.

  1. Install Python 3.11 or later. Make sure the version is appropriate with python --version.
  2. Download or clone this repository. Prefer working in a virtual environment.
  3. Install dependencies with pip install -r requirements[test].txt. This can take a bit of time.
  4. Launch the local app with python -m demonstrator.app.
Ubuntu: Example of full pipeline
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt update
sudo apt install python3.11
sudo apt install python3.11-pip
sudo apt install python3.11-venv
git clone git@github.com:mammoth-eu/mammoth-commons.git
cd mammoth-commons
python3.11 -m venv venv
source venv/bin/activate
Windows: WSL missing .so files

If you are in WSL, you are likely to get errors like this ImportError: libGL.so.1: cannot open shared object file: No such file or directory. This is due to the lack of a graphical environment. Install one like like below, including missing font symbols needed to properly display certain UI element.

sudo apt update
sudo apt install fonts-noto-color-emoji fonts-symbola
sudo apt install libgl1 libxkbcommon-x11-0 libegl1 libnss3 libxcomposite1 \
                 libxdamage1 libxrender1 libxrandr2 libxtst6 libxi6 libasound2 \
                 libxkbfile-dev qt6-wayland libxcb-cursor0 libx11-xcb1 libxcb-xinerama0
VSCode launch profile
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python Debugger: Current File",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": false,
            "cwd": "${workspaceFolder}",
        },
        {
            "name": "Python: Test",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": false,
            "cwd": "${workspaceFolder}",
            "env": {
                "PYTHONPATH": "${workspaceFolder}"
            }
        },
        {
            "name": "Demonstrator",
            "type": "debugpy",
            "request": "launch",
            "module": "demonstrator.app",
            "justMyCode": false
        }
    ]
}

🖥 Deploy in a server

:clipboard: Module catalogue

:thumbsup: Contribute

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

MAI_Bias-0.1.0-py3-none-any.whl (121.1 kB view details)

Uploaded Python 3

File details

Details for the file MAI_Bias-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: MAI_Bias-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 121.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for MAI_Bias-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f823185d0e8d554976e7853e46cb67dd663d1c8ff09c63e16bf88bd9b89a2ea1
MD5 5180379bd83c4ccd0f9423f5ea70a583
BLAKE2b-256 564efd4fbbae374b6b989297b9d471b20e30e5452cfe81b40be05ecd661c1f05

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