@@ -301,7 +301,7 @@ def end_trial(self, trial_id: Text, status: Text = "COMPLETED"):
301
301
def get_best_trials (self , num_trials : int = 1 ) -> List [trial_module .Trial ]:
302
302
"""Returns the trials with the best objective values found so far.
303
303
304
- Arguments :
304
+ Args :
305
305
num_trials: positive int, number of trials to return.
306
306
Returns:
307
307
List of KerasTuner Trials.
@@ -501,7 +501,7 @@ def run_trial(self, trial, *fit_args, **fit_kwargs):
501
501
502
502
This method is called during `search` to evaluate a set of
503
503
hyperparameters using AI Platform training.
504
- Arguments :
504
+ Args :
505
505
trial: A `Trial` instance that contains the information
506
506
needed to run this trial. `Hyperparameters` can be accessed
507
507
via `trial.hyperparameters`.
@@ -637,7 +637,7 @@ def run_trial(self, trial, *fit_args, **fit_kwargs):
637
637
def _get_job_spec_from_config (self , job_id : Text ) -> Dict [Text , Any ]:
638
638
"""Creates a request dictionary for the CAIP training service.
639
639
640
- Arguments :
640
+ Args :
641
641
job_id: Job name that will be used for AIP training
642
642
Returns:
643
643
An AI Platform Training job spec.
@@ -681,7 +681,7 @@ def _get_remote_training_metrics(
681
681
All complete epochs metrics (including the last epoch if applicable) are
682
682
returned as training_metrics.
683
683
684
- Arguments :
684
+ Args :
685
685
log_reader: An instance of tensorboard DirectoryWatcher that is
686
686
pointing to the tensorboard logs directory.
687
687
partial_epoch_metrics: Any incomplete epoch metrics from previous
@@ -742,7 +742,7 @@ def _add_logging(self, callbacks, trial):
742
742
TensorBoard callback to pass back the epoch related metrics from
743
743
remote execution.
744
744
745
- Arguments :
745
+ Args :
746
746
callbacks: List of callbacks passed in to the search function.
747
747
trial: A `Trial` instance.
748
748
Raises:
0 commit comments