import yaml def load_config(config_path: str = "configs/train_cnn.yaml") -> dict: """Loads a YAML configuration file.""" with open(config_path) as f: return yaml.safe_load(f)