def training_job_summaries(self, force_refresh=False):
        """A (paginated) list of everything from ``ListTrainingJobsForTuningJob``.

        Args:
            force_refresh (bool): Set to True to fetch the latest data from SageMaker API.

        Returns:
            dict: The Amazon SageMaker response for ``ListTrainingJobsForTuningJob``.
        """
        if force_refresh:
            self.clear_cache()
        if self._training_job_summaries is not None:
            return self._training_job_summaries
        output = []
        next_args = {}
        for count in range(100):
            logging.debug("Calling list_training_jobs_for_hyper_parameter_tuning_job %d" % count)
            raw_result = self._sage_client.list_training_jobs_for_hyper_parameter_tuning_job(
                HyperParameterTuningJobName=self.name, MaxResults=100, **next_args
            )
            new_output = raw_result['TrainingJobSummaries']
            output.extend(new_output)
            logging.debug("Got %d more TrainingJobs. Total so far: %d" % (len(new_output), len(output)))
            if ('NextToken' in raw_result) and (len(new_output) > 0):
                next_args['NextToken'] = raw_result['NextToken']
            else:
                break
        self._training_job_summaries = output
        return output
def training_job_summaries ( self , force_refresh = False ) : if force_refresh : self . clear_cache ( ) if self . _training_job_summaries is not None : return self . _training_job_summaries output = [ ] next_args = { } for count in range ( 100 ) : logging . debug ( "Calling list_training_jobs_for_hyper_parameter_tuning_job %d" % count ) raw_result = self . _sage_client . list_training_jobs_for_hyper_parameter_tuning_job ( HyperParameterTuningJobName = self . name , MaxResults = 100 , ** next_args ) new_output = raw_result [ 'TrainingJobSummaries' ] output . extend ( new_output ) logging . debug ( "Got %d more TrainingJobs. Total so far: %d" % ( len ( new_output ) , len ( output ) ) ) if ( 'NextToken' in raw_result ) and ( len ( new_output ) > 0 ) : next_args [ 'NextToken' ] = raw_result [ 'NextToken' ] else : break self . _training_job_summaries = output return output
A (paginated) list of everything from ``ListTrainingJobsForTuningJob``.

        Args:
            force_refresh (bool): Set to True to fetch the latest data from SageMaker API.

        Returns:
            dict: The Amazon SageMaker response for ``ListTrainingJobsForTuningJob``.