Skip to content

Launch Ensemble Validation on Compute Cloud

flyvis_cli.validation.validate

Script to validate an each model of an ensemble on the compute cloud.

validate_models
validate_models(args, kwargs)

Launch validation jobs for an ensemble of models.

Parameters:

Name Type Description Default
args Namespace

Command-line arguments.

required
kwargs List[str]

Additional keyword arguments as a list of strings.

required
Source code in flyvis_cli/validation/validate.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
def validate_models(args: argparse.Namespace, kwargs: List[str]) -> None:
    """
    Launch validation jobs for an ensemble of models.

    Args:
        args: Command-line arguments.
        kwargs: Additional keyword arguments as a list of strings.
    """
    launch_range(
        args.start,
        args.end,
        args.ensemble_id,
        args.task_name,
        args.nP,
        args.gpu,
        args.q,
        args.val_script,
        args.dry,
        kwargs,
    )
usage:
flyvis validate [-h] [--start START] [--end END] [...] --ensemble_id ENSEMBLE_ID --task_name TASK_NAME [additional_options...]
       or
validate.py [-h] [--start START] [--end END] [...] --ensemble_id ENSEMBLE_ID --task_name TASK_NAME [additional_options...]

For a full list of validation options and default arguments, run: flyvis val_single --help

Validate each model of an ensemble on the compute cloud.

options:
  -h, --help            show this help message and exit
  --start START         Start id of ensemble.
  --end END             End id of ensemble.
  --nP NP               Number of processors.
  --gpu GPU             Number of GPUs.
  --q Q                 Queue.
  --ensemble_id ENSEMBLE_ID
                        Id of the ensemble, e.g. 0045.
  --task_name TASK_NAME
                        Name given to the task, e.g., flow.
  --val_script VAL_SCRIPT
                        Script to run for validation. Default: /groups/turaga/home/lappalainenj/FlyVis/private/flyvision/flyvis_cli/validation/val_single.py
  --dry                 Perform a dry run without actually launching jobs.