Skip to main content

Component interfaces of the MAMMOth fairness 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


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 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.

MAMMOth_commons-0.0.43-py3-none-any.whl (121.6 kB view details)

Uploaded Python 3

File details

Details for the file MAMMOth_commons-0.0.43-py3-none-any.whl.

File metadata

File hashes

Hashes for MAMMOth_commons-0.0.43-py3-none-any.whl
Algorithm Hash digest
SHA256 8a7112321e6cee759fa767edaeed04715a29633f0b9ced841ee3dd4a118d1d48
MD5 6af43e207f19f86f27dc2ab811a7d14f
BLAKE2b-256 5d10b6982f3836d278b7f0c111eb6c2609d559e3f88d45588e25793ba19963cf

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