Component interfaces of the MAMMOth fairness toolkit.
Project description
MAMMOth-commons
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:
- Download this repository.
- Create a virtual environment. This is optional but recommended.
- 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. - Launch the local app server with
python demonstrator/app.pyor, if this fails on your platform, withpython -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 athttp://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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file MAMMOth_commons-0.0.39-py3-none-any.whl.
File metadata
- Download URL: MAMMOth_commons-0.0.39-py3-none-any.whl
- Upload date:
- Size: 51.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4312755483ed5c0611780347c2fb2ac57f9276cc2a519e1b9d17b0da5451e36
|
|
| MD5 |
52add4cdf6e0326e4fa3a29a4be7fb9d
|
|
| BLAKE2b-256 |
13d2f5447d5e4736f937d99e98f7cad0e681ba0434d2ff39906210d0b8b52d11
|