agentlab.experiments.exp_utils
Functions
|
Add dependencies to a list of ExpArgs. |
|
Move all experiments that match the filter to a new name. |
|
|
|
|
|
Run exp_args.run() with a timeout and handle dependencies. |
|
Context manager to handle timeouts. |
Classes
|
- agentlab.experiments.exp_utils.add_dependencies(exp_args_list: list[ExpArgs], task_dependencies: dict[str, list[str]] = None)
Add dependencies to a list of ExpArgs.
- Parameters:
exp_args_list – list[ExpArgs] A list of experiments to run.
task_dependencies – dict A dictionary mapping task names to a list of task names that they depend on. If None or empty, no dependencies are added.
- Returns:
- list[ExpArgs]
The modified exp_args_list with dependencies added.
- Raises:
ValueError – If the task_dependencies are not valid.
- agentlab.experiments.exp_utils.hide_some_exp(base_dir, filter: callable, just_test)
Move all experiments that match the filter to a new name.
- agentlab.experiments.exp_utils.make_seeds(n, offset=42)
- agentlab.experiments.exp_utils.run_exp(exp_arg: ExpArgs, *dependencies, avg_step_timeout=60)
Run exp_args.run() with a timeout and handle dependencies.