Skip to content

Commit 30bdfc3

Browse files
author
Donglai Wei
committed
Normalize tutorial configs across modes
1 parent 573fb05 commit 30bdfc3

29 files changed

Lines changed: 2381 additions & 1332 deletions

connectomics/decoding/tuning/optuna_tuner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,7 +1771,7 @@ def load_and_apply_best_params(cfg, checkpoint_path=None):
17711771
Load best parameters from Optuna tuning and apply them to test config.
17721772
17731773
This function loads the best-params file generated by run_tuning()
1774-
and updates the test.decoding section of the config with optimized parameters.
1774+
and updates the merged runtime inference.decoding config with optimized parameters.
17751775
17761776
Args:
17771777
cfg: Configuration object (Config dataclass)
@@ -1815,7 +1815,7 @@ def load_and_apply_best_params(cfg, checkpoint_path=None):
18151815
if getattr(cfg.inference, "decoding", None) is None:
18161816
cfg.inference.decoding = []
18171817

1818-
# Find the decoding function in test.decoding that matches the tuned function
1818+
# Find the decoder entry in the merged runtime inference.decoding config
18191819
decoding_function = best_params.get("decoding_function", None)
18201820

18211821
if decoding_function is None:

0 commit comments

Comments
 (0)