Skip to main content

Component interfaces of the MAMMOth fairness toolkit.

Project description

MAMMOth-commons

Integration Tests Coverage Contributor Covenant

Fast module development for the MAMMOth fairness toolkit. Modules refer to model loaders, dataset loaders, or metrics. The library holds common datatypes that are shared between modules, and automates the integration strategy by only needing to add a decorator. It also provides integration tests, as well as a lightweight demonstrator that is a thinned down version of the toolkit.

:microscope: Investigate fairness

Instructions to quickly launch and install the demonstrator web application locally in your machine:

  1. Download this repository.
  2. Create a virtual environment. This is optional but recommended.
  3. Install dependencies with pip install -r requirements[test].txt. This can take a bit of time to download and install everything, but you will be able to run all modules and interface with most popular data types.
  4. Launch the local app server with python demonstrator/app.py or, if this fails on your platform, with python -m demonstrator.app (notice that slash is replaced by a dot and there is no file extension). When everything is ready, this script will also open a browser window to the app's serving page at http://localhost:5050.

IDE settings

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
        }
    ]
}

:clipboard: Catalogue

Find a catalogue of modules implemented by the MAMMOth consortium here. These modules are implemented in the catalogue/ directory. They depend on datatypes found in the main commons library, which resides under the mammoth/ directory.

:thumbsup: Contributing

Instructions on how to add new modules are here. Use the GitHub issue tracker to ask questions, request features/improvements for the core library or modules, or report bugs.

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for MAMMOth_commons-0.0.39-py3-none-any.whl
Algorithm Hash digest
SHA256 e4312755483ed5c0611780347c2fb2ac57f9276cc2a519e1b9d17b0da5451e36
MD5 52add4cdf6e0326e4fa3a29a4be7fb9d
BLAKE2b-256 13d2f5447d5e4736f937d99e98f7cad0e681ba0434d2ff39906210d0b8b52d11

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