Skip to content

Commit

Permalink
Take in more override config with one call. (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
boranhan authored Nov 8, 2024
1 parent e6ed98d commit 3a19420
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/autogluon_assistant/utils/configs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import importlib.resources
import logging
import re
from pathlib import Path
from typing import Any, Dict, List, Optional

Expand Down Expand Up @@ -69,6 +70,8 @@ def apply_overrides(config: Dict[str, Any], overrides: List[str]) -> Dict[str, A

# Convert overrides to nested dict
override_conf = {}
overrides = ",".join(overrides)
overrides = re.split(r"[,\s]+", overrides)
for override in overrides:
key, value = parse_override(override)

Expand Down

0 comments on commit 3a19420

Please sign in to comment.