Google Cloud Datalabeling V1beta1 Client - Class ClassificationMetrics (0.5.7)

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 PrCurve

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

↳ confusion_matrix 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
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 PrCurve
Returns
Type Description
$this

getConfusionMatrix

Confusion matrix of predicted labels vs. ground truth labels.

Returns
Type Description
ConfusionMatrix|null

hasConfusionMatrix

clearConfusionMatrix

setConfusionMatrix

Confusion matrix of predicted labels vs. ground truth labels.

Parameter
Name Description
var ConfusionMatrix
Returns
Type Description
$this