(self)
Randomly shuffle the rows of the table.
Randomly shuffle the rows of the table.
Randomly shuffle the rows of the table .
def shuffle(self):
        """Randomly shuffle the rows of the table."""
        if not self._check_all_dense():
            raise ValueError("Rows of sparse data cannot be shuffled")
        ind = np.arange(self.X.shape[0])
        np.random.shuffle(ind)
        self.X = self.X[ind]
        self._Y = self._Y[ind]
        self.metas = self.metas[ind]
        self.W = self.W[ind]
        self.ids = self.ids[ind]
def shuffle ( self ) : if not self . _check_all_dense ( ) : raise ValueError ( "Rows of sparse data cannot be shuffled" ) ind = np . arange ( self . X . shape [ 0 ] ) np . random . shuffle ( ind ) self . X = self . X [ ind ] self . _Y = self . _Y [ ind ] self . metas = self . metas [ ind ] self . W = self . W [ ind ] self . ids = self . ids [ ind ]