Reference documentation and code samples for the Google Cloud Document Ai V1 Client class Metrics.
Evaluation metrics, either in aggregate or about a specific entity.
Generated from protobuf message google.cloud.documentai.v1.Evaluation.Metrics
Namespace
Google \ Cloud \ DocumentAI \ V1 \ EvaluationMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ precision
float
The calculated precision.
↳ recall
float
The calculated recall.
↳ f1_score
float
The calculated f1 score.
↳ predicted_occurrences_count
int
The amount of occurrences in predicted documents.
↳ ground_truth_occurrences_count
int
The amount of occurrences in ground truth documents.
↳ predicted_document_count
int
The amount of documents with a predicted occurrence.
↳ ground_truth_document_count
int
The amount of documents with a ground truth occurrence.
↳ true_positives_count
int
The amount of true positives.
↳ false_positives_count
int
The amount of false positives.
↳ false_negatives_count
int
The amount of false negatives.
↳ total_documents_count
int
The amount of documents that had an occurrence of this label.
getPrecision
The calculated precision.
float
setPrecision
The calculated precision.
var
float
$this
getRecall
The calculated recall.
float
setRecall
The calculated recall.
var
float
$this
getF1Score
The calculated f1 score.
float
setF1Score
The calculated f1 score.
var
float
$this
getPredictedOccurrencesCount
The amount of occurrences in predicted documents.
int
setPredictedOccurrencesCount
The amount of occurrences in predicted documents.
var
int
$this
getGroundTruthOccurrencesCount
The amount of occurrences in ground truth documents.
int
setGroundTruthOccurrencesCount
The amount of occurrences in ground truth documents.
var
int
$this
getPredictedDocumentCount
The amount of documents with a predicted occurrence.
int
setPredictedDocumentCount
The amount of documents with a predicted occurrence.
var
int
$this
getGroundTruthDocumentCount
The amount of documents with a ground truth occurrence.
int
setGroundTruthDocumentCount
The amount of documents with a ground truth occurrence.
var
int
$this
getTruePositivesCount
The amount of true positives.
int
setTruePositivesCount
The amount of true positives.
var
int
$this
getFalsePositivesCount
The amount of false positives.
int
setFalsePositivesCount
The amount of false positives.
var
int
$this
getFalseNegativesCount
The amount of false negatives.
int
setFalseNegativesCount
The amount of false negatives.
var
int
$this
getTotalDocumentsCount
The amount of documents that had an occurrence of this label.
int
setTotalDocumentsCount
The amount of documents that had an occurrence of this label.
var
int
$this