Keep images reproducible
Pin dependency versions so trial results are comparable over time.
Your Docker image is the unit HyperOptimizer runs for each trial. It should contain your workload, dependencies, and a default command that runs one evaluation.
--hpo-* arguments (or plain --* if you configure that mode).A minimal image build context looks like this:
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python", "main.py"]HyperOptimizer can then append trial parameters:
python main.py --hpo-lookback-window=50 --hpo-risk-multiplier=1.4Keep images reproducible
Pin dependency versions so trial results are comparable over time.
Avoid hidden local state
Do not rely on files that only exist on your laptop. Put required assets in the image or configure access explicitly.
Fail clearly
Print enough logs to debug bad parameter sets and exit non-zero for real failures.