(self)
return self._get_batch_from_indices(idx)
Return a randomised portion of the training data.
Return a randomised portion of the training data.
Return a randomised portion of the training data .
def random_batch(self):
    """Return a randomised portion of the training data."""
    idx = np.random.permutation(
        list(range(0, len(self.strokes))))[0:self.batch_size]
    return self._get_batch_from_indices(idx)
def random_batch ( self ) : idx = np . random . permutation ( list ( range ( 0 , len ( self . strokes ) ) ) ) [ 0 : self . batch_size ] return self . _get_batch_from_indices ( idx )