def new_batch(self):
        """
        Return a new batch of X and Y by taking a chunk of data from the complete X and Y
        """
        i = next(self.slicer)
        return self.X_all[i], self.Y_all[i]
def new_batch ( self ) : i = next ( self . slicer ) return self . X_all [ i ] , self . Y_all [ i ]
Return a new batch of X and Y by taking a chunk of data from the complete X and Y