Getting Started

Requirements

  • Python 3.10 or later

  • A GPU is strongly recommended for real experiments; CPU fallback works for development and CI.

Runtime dependencies installed automatically:

  • minerva >= 0.3.10b0 — base Pipeline interface, logging, reproducibility

  • ray[tune] >= 2.55 — distributed trial execution and search orchestration

  • lightning (via minerva) — model training via LightningModule and LightningDataModule

Installation

Using uv (recommended):

uv pip install minerva-opt

Using pip:

pip install minerva-opt

For Bayesian optimisation via HyperOpt, install the optional extra:

pip install "minerva-opt[hyperopt]"

Quick start — ablation study

from minerva_opt import AblationStudyPipeline

pipeline = AblationStudyPipeline(
    model=MyModel,
    baseline_config={"lr": 1e-3, "dropout": 0.2, "use_attention": True},
    ablations={
        "no_attention": {"use_attention": False},
        "high_dropout":  {"dropout": 0.5},
    },
    log_dir="runs/ablation",
    seed=0,
)

results = pipeline.run(
    data=MyDataModule(root="data/"),
    num_seeds=5,
    max_epochs=30,
    tuner_metric="val_loss",
    tuner_mode="min",
)

print(results.summary())
print(results.delta_from_baseline())

What’s next

  • Read the full Tutorial for advanced configuration, hardware options, checkpointing strategies, and troubleshooting.

  • Browse the API Reference for the complete API reference.