src/PHPSci/NaiveBayes/GaussianNB.php
public function fit(\CArray $X, \CArray $y, \CArray $sample_weight = null)
    {
        list($X, $y) = ValidationUtils::check_X_y($X, $y);
        return $this->_partial_fit($X, $y, CArray::unique($y), true, $sample_weight);
    }
public function fit(\CArray $X, \CArray $y, \CArray $sample_weight = null)
    {
        list($X, $y) = ValidationUtils::check_X_y($X, $y);
        return $this->_partial_fit($X, $y, CArray::unique($y), true, $sample_weight);
    }
public function fit ( \ CArray $ X , \ CArray $ y , \ CArray $ sample_weight = null ) { list ( $ X , $ y ) = ValidationUtils :: check_X_y ( $ X , $ y ) ; return $ this -> _partial_fit ( $ X , $ y , CArray :: unique ( $ y ) , true , $ sample_weight ) ; }
Fit Gaussian Naive Bayes according to X, y

@param \CArray $X
@param \CArray $y
@param \CArray|null $sample_weight
@return void
@throws \PHPSci\Exceptions\ValueErrorException
Fit Gaussian Naive Bayes according to X y