Google Cloud Datalabeling V1beta1 Client - Class ClassificationMetrics (0.3.1)

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
NameDescription
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
TypeDescription
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
NameDescription
var Google\Cloud\DataLabeling\V1beta1\PrCurve
Returns
TypeDescription
$this

getConfusionMatrix

Confusion matrix of predicted labels vs. ground truth labels.

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\ConfusionMatrix|null

hasConfusionMatrix

clearConfusionMatrix

setConfusionMatrix

Confusion matrix of predicted labels vs. ground truth labels.

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\ConfusionMatrix
Returns
TypeDescription
$this