Google Cloud Datalabeling V1beta1 Client - Class ClassificationMetrics (0.5.4)

Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class ClassificationMetrics.

Metrics calculated for a classification model.

Generated from protobuf message google.cloud.datalabeling.v1beta1.ClassificationMetrics

Namespace

Google \ Cloud \ DataLabeling \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ pr_curve Google\Cloud\DataLabeling\V1beta1\PrCurve

Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.

↳ confusion_matrix Google\Cloud\DataLabeling\V1beta1\ConfusionMatrix

Confusion matrix of predicted labels vs. ground truth labels.

getPrCurve

Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.

Returns
Type Description
Google\Cloud\DataLabeling\V1beta1\PrCurve|null

hasPrCurve

clearPrCurve

setPrCurve

Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.

Parameter
Name Description
var Google\Cloud\DataLabeling\V1beta1\PrCurve
Returns
Type Description
$this

getConfusionMatrix

Confusion matrix of predicted labels vs. ground truth labels.

Returns
Type Description
Google\Cloud\DataLabeling\V1beta1\ConfusionMatrix|null

hasConfusionMatrix

clearConfusionMatrix

setConfusionMatrix

Confusion matrix of predicted labels vs. ground truth labels.

Parameter
Name Description
var Google\Cloud\DataLabeling\V1beta1\ConfusionMatrix
Returns
Type Description
$this