Reference documentation and code samples for the Cloud AutoML V1 Client class ClassificationAnnotation.
Contains annotation details specific to classification.
Generated from protobuf messagegoogle.cloud.automl.v1.ClassificationAnnotation
Namespace
Google \ Cloud \ AutoMl \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ score
float
Output only. A confidence estimate between 0.0 and 1.0. A higher value means greater confidence that the annotation is positive. If a user approves an annotation as negative or positive, the score value remains unchanged. If a user creates an annotation, the score is 0 for negative or 1 for positive.
getScore
Output only. A confidence estimate between 0.0 and 1.0. A higher value
means greater confidence that the annotation is positive. If a user
approves an annotation as negative or positive, the score value remains
unchanged. If a user creates an annotation, the score is 0 for negative or
1 for positive.
Returns
Type
Description
float
setScore
Output only. A confidence estimate between 0.0 and 1.0. A higher value
means greater confidence that the annotation is positive. If a user
approves an annotation as negative or positive, the score value remains
unchanged. If a user creates an annotation, the score is 0 for negative or
1 for positive.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud AutoML V1 Client - Class ClassificationAnnotation (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-automl/latest/V1.ClassificationAnnotation)\n- [2.0.4](/php/docs/reference/cloud-automl/2.0.4/V1.ClassificationAnnotation)\n- [1.6.5](/php/docs/reference/cloud-automl/1.6.5/V1.ClassificationAnnotation)\n- [1.5.4](/php/docs/reference/cloud-automl/1.5.4/V1.ClassificationAnnotation)\n- [1.4.17](/php/docs/reference/cloud-automl/1.4.17/V1.ClassificationAnnotation) \nReference documentation and code samples for the Cloud AutoML V1 Client class ClassificationAnnotation.\n\nContains annotation details specific to classification.\n\nGenerated from protobuf message `google.cloud.automl.v1.ClassificationAnnotation`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AutoMl \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getScore\n\nOutput only. A confidence estimate between 0.0 and 1.0. A higher value\nmeans greater confidence that the annotation is positive. If a user\napproves an annotation as negative or positive, the score value remains\nunchanged. If a user creates an annotation, the score is 0 for negative or\n1 for positive.\n\n### setScore\n\nOutput only. A confidence estimate between 0.0 and 1.0. A higher value\nmeans greater confidence that the annotation is positive. If a user\napproves an annotation as negative or positive, the score value remains\nunchanged. If a user creates an annotation, the score is 0 for negative or\n1 for positive."]]