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.44-py3-none-any.whl (121.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for MAMMOth_commons-0.0.44-py3-none-any.whl
Algorithm Hash digest
SHA256 611d73aac798c00ee2c63b56573cf78ae2c87b7d6c52d0a04c1f3496c8be54f6
MD5 439db0b91177daf39a0d71ef3de6d380
BLAKE2b-256 9a4b98806a0764efea4d7eaa36f54b6f1c7c91aa667f6e2c46b032bc42d675b2

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