public function randomize() : self
    {
        $order = range(0, $this->numRows() - 1);

        shuffle($order);

        array_multisort($order, $this->samples, $this->labels);

        return $this;
    }
public function randomize() : self
    {
        $order = range(0, $this->numRows() - 1);

        shuffle($order);

        array_multisort($order, $this->samples, $this->labels);

        return $this;
    }
public function randomize ( ) : self { $ order = range ( 0 , $ this -> numRows ( ) - 1 ) ; shuffle ( $ order ) ; array_multisort ( $ order , $ this -> samples , $ this -> labels ) ; return $ this ; }
Randomize the dataset in place and return self for chaining.

@return self
Randomize the dataset in place and return self for chaining .