GoogleApi.Language.V1.Model.XPSTextExtractionEvaluationMetrics (google_api_language v0.16.3)

View Source

Attributes

  • bestF1ConfidenceMetrics (type: GoogleApi.Language.V1.Model.XPSConfidenceMetricsEntry.t, default: nil) - Values are at the highest F1 score on the precision-recall curve. Only confidence_threshold, recall, precision, and f1_score will be set.
  • confidenceMetricsEntries (type: list(GoogleApi.Language.V1.Model.XPSConfidenceMetricsEntry.t), default: nil) - If the enclosing EvaluationMetrics.label is empty, confidence_metrics_entries is an evaluation of the entire model across all labels. If the enclosing EvaluationMetrics.label is set, confidence_metrics_entries applies to that label.
  • confusionMatrix (type: GoogleApi.Language.V1.Model.XPSConfusionMatrix.t, default: nil) - Confusion matrix of the model, at the default confidence threshold (0.0). Only set for whole-model evaluation, not for evaluation per label.
  • perLabelConfidenceMetrics (type: %{optional(String.t) => GoogleApi.Language.V1.Model.XPSConfidenceMetricsEntry.t}, default: nil) - Only recall, precision, and f1_score will be set.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Language.V1.Model.XPSTextExtractionEvaluationMetrics{
  bestF1ConfidenceMetrics:
    GoogleApi.Language.V1.Model.XPSConfidenceMetricsEntry.t() | nil,
  confidenceMetricsEntries:
    [GoogleApi.Language.V1.Model.XPSConfidenceMetricsEntry.t()] | nil,
  confusionMatrix: GoogleApi.Language.V1.Model.XPSConfusionMatrix.t() | nil,
  perLabelConfidenceMetrics:
    %{
      optional(String.t()) =>
        GoogleApi.Language.V1.Model.XPSConfidenceMetricsEntry.t()
    }
    | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.