|
71 | 71 | HYPERBAND_STRATEGY_CONFIG = "HyperbandStrategyConfig"
|
72 | 72 | HYPERBAND_MIN_RESOURCE = "MinResource"
|
73 | 73 | HYPERBAND_MAX_RESOURCE = "MaxResource"
|
74 |
| -GRID_SEARCH = "GridSearch" |
| 74 | +GRID_SEARCH = "Grid" |
75 | 75 | MAX_NUMBER_OF_TRAINING_JOBS_NOT_IMPROVING = "MaxNumberOfTrainingJobsNotImproving"
|
76 | 76 | BEST_OBJECTIVE_NOT_IMPROVING = "BestObjectiveNotImproving"
|
77 | 77 | CONVERGENCE_DETECTED = "ConvergenceDetected"
|
@@ -645,7 +645,7 @@ def __init__(
|
645 | 645 | evaluating training jobs. This value can be either 'Minimize' or
|
646 | 646 | 'Maximize' (default: 'Maximize').
|
647 | 647 | max_jobs (int or PipelineVariable): Maximum total number of training jobs to start for
|
648 |
| - the hyperparameter tuning job. The default value is unspecified fot the GridSearch |
| 648 | + the hyperparameter tuning job. The default value is unspecified fot the 'Grid' |
649 | 649 | strategy and the default value is 1 for all others strategies (default: None).
|
650 | 650 | max_parallel_jobs (int or PipelineVariable): Maximum number of parallel training jobs to
|
651 | 651 | start (default: 1).
|
@@ -741,7 +741,7 @@ def __init__(
|
741 | 741 | # For all other strategies for the backward compatibility we keep
|
742 | 742 | # the default value as 1 (previous default value).
|
743 | 743 | self.max_jobs = max_jobs
|
744 |
| - if max_jobs is None and strategy is not GRID_SEARCH: |
| 744 | + if max_jobs is None and strategy != GRID_SEARCH: |
745 | 745 | self.max_jobs = 1
|
746 | 746 | self.max_parallel_jobs = max_parallel_jobs
|
747 | 747 | self.max_runtime_in_seconds = max_runtime_in_seconds
|
@@ -1917,7 +1917,7 @@ def create(
|
1917 | 1917 | objective_type (str): The type of the objective metric for evaluating training jobs.
|
1918 | 1918 | This value can be either 'Minimize' or 'Maximize' (default: 'Maximize').
|
1919 | 1919 | max_jobs (int): Maximum total number of training jobs to start for the hyperparameter
|
1920 |
| - tuning job. The default value is unspecified fot the GridSearch strategy |
| 1920 | + tuning job. The default value is unspecified fot the 'Grid' strategy |
1921 | 1921 | and the value is 1 for all others strategies (default: None).
|
1922 | 1922 | max_parallel_jobs (int): Maximum number of parallel training jobs to start
|
1923 | 1923 | (default: 1).
|
|
0 commit comments