AutoMl/src/V1beta1/ClassificationEvaluationMetrics.php
public function setConfusionMatrix($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\ClassificationEvaluationMetrics_ConfusionMatrix::class);
        $this->confusion_matrix = $var;

        return $this;
    }
public function setConfusionMatrix($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\ClassificationEvaluationMetrics_ConfusionMatrix::class);
        $this->confusion_matrix = $var;

        return $this;
    }
public function setConfusionMatrix ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ AutoMl \ V1beta1 \ ClassificationEvaluationMetrics_ConfusionMatrix :: class ) ; $ this -> confusion_matrix = $ var ; return $ this ; }
Output only. Confusion matrix of the evaluation.
Only set for MULTICLASS classification problems where number
of labels is no more than 10.
Only set for model level evaluation, not for evaluation per label.

Generated from protobuf field <code>.google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4;</code>
@param \Google\Cloud\AutoMl\V1beta1\ClassificationEvaluationMetrics\ConfusionMatrix $var
@return $this
Output only . Confusion matrix of the evaluation . Only set for MULTICLASS classification problems where number of labels is no more than 10 . Only set for model level evaluation not for evaluation per label .