[[["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,["# Document AI V1beta3 API - Class Google::Cloud::DocumentAI::V1beta3::Evaluation::Metrics (v0.43.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.43.1 (latest)](/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.43.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.43.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.42.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.42.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.41.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.41.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.40.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.40.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.39.1](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.39.1/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.38.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.38.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.37.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.37.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.36.1](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.36.1/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.35.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.35.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.34.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.34.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.33.1](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.33.1/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.32.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.32.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.31.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.31.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.30.2](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.30.2/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.29.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.29.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.28.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.28.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.27.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.27.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.26.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.26.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.25.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.25.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.24.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.24.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.23.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.23.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.22.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.22.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.21.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.21.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.20.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.20.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.19.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.19.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.18.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.18.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.17.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.17.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.16.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.16.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.15.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.15.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.14.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.14.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.13.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.13.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.12.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.12.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.11.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.11.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.10.0](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.10.0/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics)\n- [0.9.4](/ruby/docs/reference/google-cloud-document_ai-v1beta3/0.9.4/Google-Cloud-DocumentAI-V1beta3-Evaluation-Metrics) \nReference documentation and code samples for the Document AI V1beta3 API class Google::Cloud::DocumentAI::V1beta3::Evaluation::Metrics.\n\nEvaluation metrics, either in aggregate or about a specific entity. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #f1_score\n\n def f1_score() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- The calculated f1 score.\n\n### #f1_score=\n\n def f1_score=(value) -\u003e ::Float\n\n**Parameter**\n\n- **value** (::Float) --- The calculated f1 score. \n**Returns**\n\n- (::Float) --- The calculated f1 score.\n\n### #false_negatives_count\n\n def false_negatives_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The amount of false negatives.\n\n### #false_negatives_count=\n\n def false_negatives_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The amount of false negatives. \n**Returns**\n\n- (::Integer) --- The amount of false negatives.\n\n### #false_positives_count\n\n def false_positives_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The amount of false positives.\n\n### #false_positives_count=\n\n def false_positives_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The amount of false positives. \n**Returns**\n\n- (::Integer) --- The amount of false positives.\n\n### #ground_truth_document_count\n\n def ground_truth_document_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The amount of documents with a ground truth occurrence.\n\n### #ground_truth_document_count=\n\n def ground_truth_document_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The amount of documents with a ground truth occurrence. \n**Returns**\n\n- (::Integer) --- The amount of documents with a ground truth occurrence.\n\n### #ground_truth_occurrences_count\n\n def ground_truth_occurrences_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The amount of occurrences in ground truth documents.\n\n### #ground_truth_occurrences_count=\n\n def ground_truth_occurrences_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The amount of occurrences in ground truth documents. \n**Returns**\n\n- (::Integer) --- The amount of occurrences in ground truth documents.\n\n### #precision\n\n def precision() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- The calculated precision.\n\n### #precision=\n\n def precision=(value) -\u003e ::Float\n\n**Parameter**\n\n- **value** (::Float) --- The calculated precision. \n**Returns**\n\n- (::Float) --- The calculated precision.\n\n### #predicted_document_count\n\n def predicted_document_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The amount of documents with a predicted occurrence.\n\n### #predicted_document_count=\n\n def predicted_document_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The amount of documents with a predicted occurrence. \n**Returns**\n\n- (::Integer) --- The amount of documents with a predicted occurrence.\n\n### #predicted_occurrences_count\n\n def predicted_occurrences_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The amount of occurrences in predicted documents.\n\n### #predicted_occurrences_count=\n\n def predicted_occurrences_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The amount of occurrences in predicted documents. \n**Returns**\n\n- (::Integer) --- The amount of occurrences in predicted documents.\n\n### #recall\n\n def recall() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- The calculated recall.\n\n### #recall=\n\n def recall=(value) -\u003e ::Float\n\n**Parameter**\n\n- **value** (::Float) --- The calculated recall. \n**Returns**\n\n- (::Float) --- The calculated recall.\n\n### #total_documents_count\n\n def total_documents_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The amount of documents that had an occurrence of this label.\n\n### #total_documents_count=\n\n def total_documents_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The amount of documents that had an occurrence of this label. \n**Returns**\n\n- (::Integer) --- The amount of documents that had an occurrence of this label.\n\n### #true_positives_count\n\n def true_positives_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The amount of true positives.\n\n### #true_positives_count=\n\n def true_positives_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The amount of true positives. \n**Returns**\n\n- (::Integer) --- The amount of true positives."]]