Sweep
read_sweep
Read sweep in the default organization/project. If you want to
override the default organization/project, then pass organization_name
or
project_name
as **kwargs
.
Args
sweep_name
(str) : Sweep name.
Example
list_sweeps
List sweeps in the default organization/project. If you want to
override the default organization/project, then pass organization_name
or
project_name
as **kwargs
.
Example
create_sweep
Create sweep in the default organization/project. If you want to
override the default organization/project, then pass organization_name
or
project_name
as **kwargs
. Pass use_git_diff=True
if you want to run
experiment with uncommitted changes and pass use_git_diff_untracked=True
if you want to run untracked changes(only valid if use_git_diff
is set).
Args
name
(str) : Nameobjective
(Optional[vessl.SweepObjective]) : A sweep objective including goal, metric, and type.max_experiment_count
(Optional[int]) : The maximum number of experiments to run. Required unless grid search.parallel_experiment_count
(Optional[int]) : The number of experiments to run in parallel. Default: 1.max_failed_experiment_count
(Optional[int]) : The maximum number of experiments to allow to fail. Default: 1.algorithm
(str) : Parameter suggestion algorithm.grid
,random
, orbayesian
.parameters
(List[vessl.SweepParameter]) : A list of parameters to search.- SweepParameter
- name(str): The names of hyperparameters to search.
- type(str):
int
,double
,categorical
. - range(SweepParameterRange): Search range.
- list(List[str]): A list of values to try.
If
list
is given,min
,max
andstep
will be ignored. - min(str): The minimum value of the search range (inclusive).
- max(str): The maximum value of the search range (inclusive).
- step(Optional[str]): If provided, the values are limited to min + n*step.
- list(List[str]): A list of values to try.
If
- SweepParameter
cluster_name
(str) : Cluster name(must be specified before other options).command
(str) : Start command to execute in experiment container.resource_spec_name
(str) : Resource type to run an experiment (for managed cluster only). Defaults to None.cpu_limit
(float) : Number of vCPUs (for custom cluster only). Defaults to None.memory_limit
(str) : Memory limit (for custom cluster only). Defaults to None. Example: “100Gi”, “500Mi”gpu_type
(str) : GPU type(name) (for custom cluster only). Defaults to “Any”. processor_type(str) cpu or gpu (for custom cluster only). Defaults to None. Examplegpu_limit
(int) : Number of GPU cores (for custom cluster only). Defaults to None.image_url
(str) : Kernel docker image URL. Defaults to None.early_stopping_name
(str) : Early stopping algorithm name. Defaults to None.early_stopping_settings
(List[Tuple[str, str]]) : Early stopping algorithm settings. Defaults to None.message
(str) : Message. Defaults to None.hyperparameters
(List[str]) : A list of fixed hyperparameters. Defaults to None.dataset_mounts
(List[str]) : A list of dataset mounts. Defaults to None.git_ref_mounts
(List[str]) : A list of git repository mounts. Defaults to None.git_diff_mount
(str) : Git diff mounts. Defaults to None.archive_file_mount
(str) : Local archive file mounts. Defaults to None.object_storage_mount
(str) : Object storage mounts. Defaults to None.root_volume_size
(str) : Root volume size. Defaults to None.working_dir
(str) : Working directory path. Defaults to None.output_dir
(str) : Output directory path. Defaults to “/output/”.
Example
terminate_sweep
Terminate sweep in the default organization/project. If you want to
override the default organization/project, then pass organization_name
or
project_name
as **kwargs
.
Args
sweep_name
(str) : Sweep name.
Example
list_sweep_logs
List sweep logs in the default organization/project. If you want to
override the default organization/project, then pass organization_name
or
project_name
as **kwargs
.
Args
sweep_name
(str) : Sweep name.tail
(int) : The number of lines to display from the end. Display all if -1. Defaults to 200.
Example
get_best_sweep_experiment
Read sweep and return the best experiment info in the default
organization/project. If you want to override the default
organization/project, then pass organization_name
or project_name
as
**kwargs
.
Args
sweep_name
(str) : Sweep name.
Example