(self, result='data')
Generate mini-batch data or index

        Parameters
        ----------
        result : str, 'data' or 'index', default: 'data'
            Specify you want batch data or batch index.

        Returns
        -------
        A generator that might generate data or index.
Generate mini-batch data or index
Generate mini - batch data or index
def mini_batch_data_generator(self, result='data'):
        """
        Generate mini-batch data or index

        Parameters
        ----------
        result : str, 'data' or 'index', default: 'data'
            Specify you want batch data or batch index.

        Returns
        -------
        A generator that might generate data or index.
        """
        LOGGER.debug("Currently, len of all_batch_data: {}".format(len(self.all_batch_data)))
        if result == 'index':
            for index_table in self.all_index_data:
                yield index_table
        else:
            for batch_data in self.all_batch_data:
                yield batch_data
def mini_batch_data_generator ( self , result = 'data' ) : LOGGER . debug ( "Currently, len of all_batch_data: {}" . format ( len ( self . all_batch_data ) ) ) if result == 'index' : for index_table in self . all_index_data : yield index_table else : for batch_data in self . all_batch_data : yield batch_data