Prepares and optionally submits a PBS array job for parameter sweep.
Arguments
- param_grid
Data frame. Parameter grid to sweep.
- output_dir
Character. Directory for output files.
- pbs_config
List. PBS configuration options (see
generate_pbs_script).- sweep_type
Character. Type of sweep: "modelsel" or "baselines".
- sweep_config
List. Sweep-specific configuration.
- submit
Logical. If TRUE, submit the job. If FALSE, only generate scripts.
- verbose
Logical. Print progress messages.
Value
List containing:
job_id: PBS job ID (if submitted)script_file: Path to the PBS scriptparam_grid_file: Path to the saved parameter gridoutput_dir: Output directoryn_tasks: Number of tasks
Examples
if (FALSE) { # \dontrun{
# Generate scripts only (dry run)
result <- submit_pbs_sweep(
param_grid = make_param_grid_test(),
output_dir = "results",
submit = FALSE
)
# Submit job
result <- submit_pbs_sweep(
param_grid = make_param_grid_paper_core(),
output_dir = "results",
pbs_config = list(queue = "batch"),
submit = TRUE
)
} # }