From 451db0b76e079752416127460f365c694e20608d Mon Sep 17 00:00:00 2001 From: anrp Date: Sun, 25 Jan 2026 13:18:23 +0000 Subject: [PATCH] fix: specify study name (#119) If we don't, optuna will generate a UUID for a name, which will never be found when loading as it is a "different" study. https://optuna.readthedocs.io/en/stable/reference/generated/optuna.study.create_study.html#optuna.study.create_study --- src/heretic/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/heretic/main.py b/src/heretic/main.py index d549b2f..3ee924b 100644 --- a/src/heretic/main.py +++ b/src/heretic/main.py @@ -546,6 +546,7 @@ def run(): raise TrialPruned() study = optuna.create_study( + study_name="heretic", sampler=TPESampler( n_startup_trials=settings.n_startup_trials, n_ei_candidates=128,