panahiparham / ml-experiment-definition

MIT License
2 stars 3 forks source link

Add client side code #7

Closed panahiparham closed 3 weeks ago

panahiparham commented 1 month ago

Usecase

python project/exp_name/main.py --part_name x --config_id [y, ...] --version z --seeds [1, ..., n]
# main.py

# parse command line args

exp = ExperimentDefinition(part_name, version: int | None)

# dict[str, Any]
config = exp.get_config(config_id)

# list[dict[str, Any]]
configs = exp.get_configs(config_ids)

configs_and_seeds = exp.get_configs(config_ids, product_seeds=seeds)