[[["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-04 UTC."],[],[],null,["# Google Cloud Document Ai V1 Client - Class Metrics (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-document-ai/latest/V1.Evaluation.Metrics)\n- [2.2.2](/php/docs/reference/cloud-document-ai/2.2.2/V1.Evaluation.Metrics)\n- [2.1.3](/php/docs/reference/cloud-document-ai/2.1.3/V1.Evaluation.Metrics)\n- [2.0.0](/php/docs/reference/cloud-document-ai/2.0.0/V1.Evaluation.Metrics)\n- [1.14.0](/php/docs/reference/cloud-document-ai/1.14.0/V1.Evaluation.Metrics)\n- [1.13.1](/php/docs/reference/cloud-document-ai/1.13.1/V1.Evaluation.Metrics)\n- [1.12.2](/php/docs/reference/cloud-document-ai/1.12.2/V1.Evaluation.Metrics)\n- [1.9.0](/php/docs/reference/cloud-document-ai/1.9.0/V1.Evaluation.Metrics)\n- [1.8.2](/php/docs/reference/cloud-document-ai/1.8.2/V1.Evaluation.Metrics)\n- [1.7.0](/php/docs/reference/cloud-document-ai/1.7.0/V1.Evaluation.Metrics)\n- [1.6.0](/php/docs/reference/cloud-document-ai/1.6.0/V1.Evaluation.Metrics)\n- [1.5.0](/php/docs/reference/cloud-document-ai/1.5.0/V1.Evaluation.Metrics)\n- [1.4.0](/php/docs/reference/cloud-document-ai/1.4.0/V1.Evaluation.Metrics)\n- [1.3.0](/php/docs/reference/cloud-document-ai/1.3.0/V1.Evaluation.Metrics)\n- [1.2.2](/php/docs/reference/cloud-document-ai/1.2.2/V1.Evaluation.Metrics)\n- [1.1.1](/php/docs/reference/cloud-document-ai/1.1.1/V1.Evaluation.Metrics)\n- [1.0.1](/php/docs/reference/cloud-document-ai/1.0.1/V1.Evaluation.Metrics) \nReference documentation and code samples for the Google Cloud Document Ai V1 Client class Metrics.\n\nEvaluation metrics, either in aggregate or about a specific entity.\n\nGenerated from protobuf message `google.cloud.documentai.v1.Evaluation.Metrics`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DocumentAI \\\\ V1 \\\\ Evaluation\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPrecision\n\nThe calculated precision.\n\n### setPrecision\n\nThe calculated precision.\n\n### getRecall\n\nThe calculated recall.\n\n### setRecall\n\nThe calculated recall.\n\n### getF1Score\n\nThe calculated f1 score.\n\n### setF1Score\n\nThe calculated f1 score.\n\n### getPredictedOccurrencesCount\n\nThe amount of occurrences in predicted documents.\n\n### setPredictedOccurrencesCount\n\nThe amount of occurrences in predicted documents.\n\n### getGroundTruthOccurrencesCount\n\nThe amount of occurrences in ground truth documents.\n\n### setGroundTruthOccurrencesCount\n\nThe amount of occurrences in ground truth documents.\n\n### getPredictedDocumentCount\n\nThe amount of documents with a predicted occurrence.\n\n### setPredictedDocumentCount\n\nThe amount of documents with a predicted occurrence.\n\n### getGroundTruthDocumentCount\n\nThe amount of documents with a ground truth occurrence.\n\n### setGroundTruthDocumentCount\n\nThe amount of documents with a ground truth occurrence.\n\n### getTruePositivesCount\n\nThe amount of true positives.\n\n### setTruePositivesCount\n\nThe amount of true positives.\n\n### getFalsePositivesCount\n\nThe amount of false positives.\n\n### setFalsePositivesCount\n\nThe amount of false positives.\n\n### getFalseNegativesCount\n\nThe amount of false negatives.\n\n### setFalseNegativesCount\n\nThe amount of false negatives.\n\n### getTotalDocumentsCount\n\nThe amount of documents that had an occurrence of this label.\n\n### setTotalDocumentsCount\n\nThe amount of documents that had an occurrence of this label."]]