About
mml is a research-oriented Python package which aims to provide an easy and scalable
way of performing deep learning on multiple image tasks (see
Meta-Learning).
It features:
- a clear methodology to store, load, refer, modify and combine RGB image datasets across task types (classification, segmentation, ...)
- a highly configurable CLI for the full deep learning pipeline
- a dedicated file management system, capable of continuing aborted experiments, reuse previous results and parallelize runs
- an api for interactive pre- and post-experiment exploration
- smooth integration of latest deep learning libraries (lightning, hydra, optuna, ...)
- easy expandability via plugins or directly hooking into runtime objects via scripts or notebooks
- good documentation, broad testing and ambitious goals
Please read the official documentation page for more. Main author: Patrick Godau, Deutsches Krebsforschungszentrum (DKFZ) Heidelberg
Division of Intelligent Medical Systems
Contact: patrick.godau@dkfz-heidelberg.de
Setup
Create a virtual environment (e.g. using conda) as follows:
conda create -n mml python=3.10
conda activate mml
Now install the core of mml via
pip install mml-core
plugins
Plugins extend mml functionality. See here for a
list of available plugins. They are installable exactly like the previous pip command, just replace mml-core with
one of the plugins to install. Nevertheless, some plugins require additional setup steps. Check with the README of the
specific plugin for details.
local environment variables
mml relies on a mml.env file for relevant environment variables. There are multiple possibilities to locate this:
- within your project folder (e.g. for separation of
mmlinstallations), - within your home folder or similar (e.g. for shared
mmlconfigs across installations)
You can use mml-env-setup from the command line at the location you want to place your mml.env file:
cd /path/to/your/config/location
mml-env-setup
Now you only need to pinpoint mml to your mml.env file. This can be done via an environment variable MML_ENV_PATH
that needs to be present in the environment before starting MML. If you use conda this simplifies to
conda env config vars set MML_ENV_PATH=/path/to/your/config/location/mml.env
# if your file is located at the current working directory, you may instead use
# pwd | conda env config vars set MML_ENV_PATH=$(</dev/stdin)/mml.env
# either way this requires re-activation of environment
conda activate mml
# test if the path is set
echo $MML_ENV_PATH
You should see your path printed - if yes, continue providing the actual variables:
- open
mml.envin your preferred editor - set
MML_DATA_PATHto the path you want to store downloaded or generated datasets later on - set
MML_RESULTS_PATHto be the location you want to save your experiments in later on (plots, trained network parameters, caluclated distances, etc.). - set
MML_LOCAL_WORKERSto be the number of usable (virtual) cpu cores - all other variables are optional for now
Confirm installation
You can confirm that mml was installed successful via running mml in the terminal,
which should result in a display of an MML logo.
License
This library is licensed under the permissive MIT license, which is fully compatible with both academic and commercial applications.
Copyright German Cancer Research Center (DKFZ) and contributors. Please make sure that your usage of this code is in compliance with its license. This project is/was supported by
- (i) the German Federal Ministry of Health under the reference number 2520DAT0P1 as part of the pAItient (Protected Artificial Intelligence Innovation Environment for Patient Oriented Digital Health Solutions for developing, testing and evidence based evaluation of clinical value) project,
- (ii) HELMHOLTZ IMAGING, a platform of the Helmholtz Information & Data Science Incubator and
- (iii) the Helmholtz Association under the joint research school “HIDSS4Health – Helmholtz Information and Data Science School for Health"
If you use this code in a research paper, please cite:
@InProceedings{Godau2021TaskF,
author="Godau, Patrick and Maier-Hein, Lena",
editor="de Bruijne, Marleen and Cattin, Philippe C. and Cotin, St{\'e}phane and Padoy, Nicolas and Speidel, Stefanie and Zheng, Yefeng and Essert, Caroline",
title="Task Fingerprinting for Meta Learning inBiomedical Image Analysis",
booktitle="Medical Image Computing and Computer Assisted Intervention -- MICCAI 2021",
year="2021",
publisher="Springer International Publishing",
pages="436--446"
}
Metadata
Release files for mml-core 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mml_core-1.0.4.tar.gz | 448.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mml_core-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 986.4 kB
Release files / mml_core-1.0.4.tar.gz
| Download URL | mml_core-1.0.4.tar.gz |
|---|---|
| Size | 448.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20ae1ca71e7d965e5ab015544bdd51a2addc1731537af6e1400f8e4ab8d568a2
|
|
BLAKE2b-256 checksum How to use checksums |
5759bacded5d2509b5f8afdf1e0c7049ef662c8b9a50716ab3b2f436b91b295e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 2, 2025.
Transparency logRelease files / mml_core-1.0.4-py3-none-any.whl
| Download URL | mml_core-1.0.4-py3-none-any.whl |
|---|---|
| Size | 538.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f72d82797c9439f9a998f1d55481b00305f311f27b58270668f54ec672728e3
|
|
BLAKE2b-256 checksum How to use checksums |
0b2e0203c03bee7d5219ca90009394cf1baa99e43d22ae20068c3ef36d838c67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 2, 2025.
Transparency log