(self, data)
return new_data
Apply randomization of the given data. Returns a new
        data table.

        Parameters
        ----------
        data : Orange.data.Table
            A data table to be randomized.

        Returns
        -------
        data : Orange.data.Table
            Randomized data table.
Apply randomization of the given data. Returns a new
        data table.
Apply randomization of the given data . Returns a new data table .
def __call__(self, data):
        """
        Apply randomization of the given data. Returns a new
        data table.

        Parameters
        ----------
        data : Orange.data.Table
            A data table to be randomized.

        Returns
        -------
        data : Orange.data.Table
            Randomized data table.
        """
        new_data = data.copy()
        rstate = np.random.RandomState(self.rand_seed)
        # ensure the same seed is not used to shuffle X and Y at the same time
        r1, r2, r3 = rstate.randint(0, 2 ** 32 - 1, size=3, dtype=np.int64)
        with new_data.unlocked():
            if self.rand_type & Randomize.RandomizeClasses:
                new_data.Y = self.randomize(new_data.Y, r1)
            if self.rand_type & Randomize.RandomizeAttributes:
                new_data.X = self.randomize(new_data.X, r2)
            if self.rand_type & Randomize.RandomizeMetas:
                new_data.metas = self.randomize(new_data.metas, r3)
        return new_data
def __call__ ( self , data ) : new_data = data . copy ( ) rstate = np . random . RandomState ( self . rand_seed ) # ensure the same seed is not used to shuffle X and Y at the same time r1 , r2 , r3 = rstate . randint ( 0 , 2 ** 32 - 1 , size = 3 , dtype = np . int64 ) with new_data . unlocked ( ) : if self . rand_type & Randomize . RandomizeClasses : new_data . Y = self . randomize ( new_data . Y , r1 ) if self . rand_type & Randomize . RandomizeAttributes : new_data . X = self . randomize ( new_data . X , r2 ) if self . rand_type & Randomize . RandomizeMetas : new_data . metas = self . randomize ( new_data . metas , r3 ) return new_data