Skip to Content
DocumentationInstallation

Installation guide

Requirements

  • Python ≥3.10, <3.13
  • uv  package manager (recommended) or pip

If you do not have uv installed:

curl -LsSf https://astral.sh/uv/install.sh | sh

Install

Create and activate a virtual environment first:

uv venv source .venv/bin/activate

Then install the base package (includes core data handling, classical ML, gradient-boosted trees (XGBoost, LightGBM, CatBoost), hyperparameter optimisation (Optuna), and visualisation):

uv pip install -e .

Optional extras

ExtraCommandNotes
dluv pip install -e ".[dl]"Torch package that enambles deep learning architectures to be run
xaiuv pip install -e ".[xai]"Explainable AI packages including SHAP, LIME, PyALE
appuv pip install -e ".[app]"Running web app can be run only when FastAPI and uvicorn packages are installed
fluv pip install -e ".[fl]"Federated learning dependencies including flower
tab-fmuv pip install -e ".[tab-fm]"Tabular foundation models including TabPFN, TabICL
llmuv pip install -e ".[llm]"Ollama for running classification with large language models configured as classifiers
automluv pip install -e ".[automl]"FLAML for automated search over learners
privacyuv pip install -e ".[privacy]"Opacus (differentially-private training)
mgmuv pip install -e ".[mgm]"Microbial general model (MGM) as encoder https://github.com/HUST-NingKang-Lab/MGM 
devuv pip install -e ".[dev]"pytest, black, isort, flake8, mypy, jupyter
alluv pip install -e ".[all]"Everything above

Verify installation

import mllabiome as mll print(mll.__version__)

GPU support (optional)

For CUDA support, replace the torch install with the appropriate wheel from pytorch.org .

Last updated on