public function zip() : array
    {
        $rows = $this->samples;

        foreach ($rows as $i => &$row) {
            $row[] = $this->labels[$i];
        }

        return $rows;
    }
public function zip() : array
    {
        $rows = $this->samples;

        foreach ($rows as $i => &$row) {
            $row[] = $this->labels[$i];
        }

        return $rows;
    }
public function zip ( ) : array { $ rows = $ this -> samples ; foreach ( $ rows as $ i => & $ row ) { $ row [ ] = $ this -> labels [ $ i ] ; } return $ rows ; }
Return the samples and labels in a single array.

@return array[]
Return the samples and labels in a single array .