public function setColumnNames(array $names)
    {
        if ($this->featureCount !== 0 && count($names) !== $this->featureCount) {
            throw new InvalidArgumentException(sprintf('Length of the given array should be equal to feature count %s', $this->featureCount));
        }

        $this->columnNames = $names;

        return $this;
    }
public function setColumnNames(array $names)
    {
        if ($this->featureCount !== 0 && count($names) !== $this->featureCount) {
            throw new InvalidArgumentException(sprintf('Length of the given array should be equal to feature count %s', $this->featureCount));
        }

        $this->columnNames = $names;

        return $this;
    }
public function setColumnNames ( array $ names ) { if ( $ this -> featureCount !== 0 && count ( $ names ) !== $ this -> featureCount ) { throw new InvalidArgumentException ( sprintf ( 'Length of the given array should be equal to feature count %s' , $ this -> featureCount ) ) ; } $ this -> columnNames = $ names ; return $ this ; }
A string array to represent columns. Useful when HTML output or
column importances are desired to be inspected.

@return $this

@throws InvalidArgumentException
A string array to represent columns . Useful when HTML output or column importances are desired to be inspected .