Reference documentation and code samples for the Cloud AutoML V1 Client class TextSentimentEvaluationMetrics.
Model evaluation metrics for text sentiment problems.
Generated from protobuf message google.cloud.automl.v1.TextSentimentEvaluationMetrics
Namespace
Google \ Cloud \ AutoMl \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ precision
float
Output only. Precision.
↳ recall
float
Output only. Recall.
↳ f1_score
float
Output only. The harmonic mean of recall and precision.
↳ mean_absolute_error
float
Output only. Mean absolute error. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
↳ mean_squared_error
float
Output only. Mean squared error. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
↳ linear_kappa
float
Output only. Linear weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
↳ quadratic_kappa
float
Output only. Quadratic weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
↳ confusion_matrix
Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics\ConfusionMatrix
Output only. Confusion matrix of the evaluation. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
getPrecision
Output only. Precision.
float
setPrecision
Output only. Precision.
var
float
$this
getRecall
Output only. Recall.
float
setRecall
Output only. Recall.
var
float
$this
getF1Score
Output only. The harmonic mean of recall and precision.
float
setF1Score
Output only. The harmonic mean of recall and precision.
var
float
$this
getMeanAbsoluteError
Output only. Mean absolute error. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float
setMeanAbsoluteError
Output only. Mean absolute error. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
var
float
$this
getMeanSquaredError
Output only. Mean squared error. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float
setMeanSquaredError
Output only. Mean squared error. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
var
float
$this
getLinearKappa
Output only. Linear weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float
setLinearKappa
Output only. Linear weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
var
float
$this
getQuadraticKappa
Output only. Quadratic weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float
setQuadraticKappa
Output only. Quadratic weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
var
float
$this
getConfusionMatrix
Output only. Confusion matrix of the evaluation.
Only set for the overall model evaluation, not for evaluation of a single annotation spec.
hasConfusionMatrix
clearConfusionMatrix
setConfusionMatrix
Output only. Confusion matrix of the evaluation.
Only set for the overall model evaluation, not for evaluation of a single annotation spec.
$this