public final class XPSBoundingBoxMetricsEntryConfidenceMetricsEntry
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Natural Language API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
XPSBoundingBoxMetricsEntryConfidenceMetricsEntry() |
Modifier and Type | Method and Description |
---|---|
XPSBoundingBoxMetricsEntryConfidenceMetricsEntry |
clone() |
Float |
getConfidenceThreshold()
The confidence threshold value used to compute the metrics.
|
Float |
getF1Score()
The harmonic mean of recall and precision.
|
Float |
getPrecision()
Precision for the given confidence threshold.
|
Float |
getRecall()
Recall for the given confidence threshold.
|
XPSBoundingBoxMetricsEntryConfidenceMetricsEntry |
set(String fieldName,
Object value) |
XPSBoundingBoxMetricsEntryConfidenceMetricsEntry |
setConfidenceThreshold(Float confidenceThreshold)
The confidence threshold value used to compute the metrics.
|
XPSBoundingBoxMetricsEntryConfidenceMetricsEntry |
setF1Score(Float f1Score)
The harmonic mean of recall and precision.
|
XPSBoundingBoxMetricsEntryConfidenceMetricsEntry |
setPrecision(Float precision)
Precision for the given confidence threshold.
|
XPSBoundingBoxMetricsEntryConfidenceMetricsEntry |
setRecall(Float recall)
Recall for the given confidence threshold.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public XPSBoundingBoxMetricsEntryConfidenceMetricsEntry()
public Float getConfidenceThreshold()
null
for nonepublic XPSBoundingBoxMetricsEntryConfidenceMetricsEntry setConfidenceThreshold(Float confidenceThreshold)
confidenceThreshold
- confidenceThreshold or null
for nonepublic Float getF1Score()
null
for nonepublic XPSBoundingBoxMetricsEntryConfidenceMetricsEntry setF1Score(Float f1Score)
f1Score
- f1Score or null
for nonepublic Float getPrecision()
null
for nonepublic XPSBoundingBoxMetricsEntryConfidenceMetricsEntry setPrecision(Float precision)
precision
- precision or null
for nonepublic Float getRecall()
null
for nonepublic XPSBoundingBoxMetricsEntryConfidenceMetricsEntry setRecall(Float recall)
recall
- recall or null
for nonepublic XPSBoundingBoxMetricsEntryConfidenceMetricsEntry set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public XPSBoundingBoxMetricsEntryConfidenceMetricsEntry clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.