def __getitem__(self, index: int) -> Tuple:
        'Generate one batch of data'
        # Generate indexes of the batch
        indexes = self.indexes[index*self.bs:(index+1)*self.bs]

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

        return X, y
def __getitem__ ( self , index : int ) -> Tuple : indexes = self . indexes [ index * self . bs : ( index + 1 ) * self . bs ] X , y = self . __negative_sampling ( indexes ) return X , y
Generate one batch of data