progress
orchard.core.logger.progress
¶
Progress and Optimization Logging.
Provides formatted logging utilities for training progress, Optuna optimization, and pipeline completion summaries.
log_optimization_header(cfg, logger_instance=None)
¶
Log Optuna optimization configuration details.
Logs search-specific parameters only (dataset/model already shown in environment).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cfg
|
'Config'
|
Configuration with optuna settings |
required |
logger_instance
|
Logger | None
|
Logger instance to use (defaults to module logger) |
None
|
Source code in orchard/core/logger/progress.py
log_trial_start(trial_number, params, logger_instance=None)
¶
Log trial start with formatted parameters (grouped by category).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
trial_number
|
int
|
Trial index |
required |
params
|
dict[str, Any]
|
Sampled hyperparameters |
required |
logger_instance
|
Logger | None
|
Logger instance to use (defaults to module logger) |
None
|
Source code in orchard/core/logger/progress.py
log_optimization_summary(study, cfg, device, paths, logger_instance=None)
¶
Log optimization study completion summary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
study
|
'optuna.Study'
|
Completed Optuna study |
required |
cfg
|
'Config'
|
Configuration object |
required |
device
|
'torch.device'
|
PyTorch device used |
required |
paths
|
'RunPaths'
|
Run paths for artifacts |
required |
logger_instance
|
Logger | None
|
Logger instance to use (defaults to module logger) |
None
|
Source code in orchard/core/logger/progress.py
log_pipeline_summary(test_acc, macro_f1, best_model_path, run_dir, duration, test_auc=None, onnx_path=None, logger_instance=None)
¶
Log final pipeline completion summary.
Called at the end of the pipeline after all phases complete. Consolidates key metrics and artifact locations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
test_acc
|
float
|
Final test accuracy |
required |
macro_f1
|
float
|
Final macro F1 score |
required |
best_model_path
|
Path
|
Path to best model checkpoint |
required |
run_dir
|
Path
|
Root directory for this run |
required |
duration
|
str
|
Human-readable duration string |
required |
test_auc
|
float | None
|
Final test AUC (if available) |
None
|
onnx_path
|
Path | None
|
Path to ONNX export (if performed) |
None
|
logger_instance
|
Logger | None
|
Logger instance to use (defaults to module logger) |
None
|