(self, index)
return X, y
Generate one batch of data
Generate one batch of data
Generate one batch of data
def __getitem__(self, index):
        'Generate one batch of data'
        # Generate indexes of the batch
        indexes = self.indexes[index*self.batch_size:(index+1)*self.batch_size]

        # Find list of IDs
        list_IDs_temp = [self.list_IDs[k] for k in indexes]

        # Generate data
        X, y = self.__data_generation_mp(list_IDs_temp, indexes)

        return X, y
def __getitem__ ( self , index ) : # Generate indexes of the batch indexes = self . indexes [ index * self . batch_size : ( index + 1 ) * self . batch_size ] # Find list of IDs list_IDs_temp = [ self . list_IDs [ k ] for k in indexes ] # Generate data X , y = self . __data_generation_mp ( list_IDs_temp , indexes ) return X , y