public final class AggregateClassificationMetrics
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 BigQuery 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 |
---|
AggregateClassificationMetrics() |
Modifier and Type | Method and Description |
---|---|
AggregateClassificationMetrics |
clone() |
Double |
getAccuracy()
Accuracy is the fraction of predictions given the correct label.
|
Double |
getF1Score()
The F1 score is an average of recall and precision.
|
Double |
getLogLoss()
Logarithmic Loss.
|
Double |
getPrecision()
Precision is the fraction of actual positive predictions that had positive actual labels.
|
Double |
getRecall()
Recall is the fraction of actual positive labels that were given a positive prediction.
|
Double |
getRocAuc()
Area Under a ROC Curve.
|
Double |
getThreshold()
Threshold at which the metrics are computed.
|
AggregateClassificationMetrics |
set(String fieldName,
Object value) |
AggregateClassificationMetrics |
setAccuracy(Double accuracy)
Accuracy is the fraction of predictions given the correct label.
|
AggregateClassificationMetrics |
setF1Score(Double f1Score)
The F1 score is an average of recall and precision.
|
AggregateClassificationMetrics |
setLogLoss(Double logLoss)
Logarithmic Loss.
|
AggregateClassificationMetrics |
setPrecision(Double precision)
Precision is the fraction of actual positive predictions that had positive actual labels.
|
AggregateClassificationMetrics |
setRecall(Double recall)
Recall is the fraction of actual positive labels that were given a positive prediction.
|
AggregateClassificationMetrics |
setRocAuc(Double rocAuc)
Area Under a ROC Curve.
|
AggregateClassificationMetrics |
setThreshold(Double threshold)
Threshold at which the metrics are computed.
|
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 Double getAccuracy()
null
for nonepublic AggregateClassificationMetrics setAccuracy(Double accuracy)
accuracy
- accuracy or null
for nonepublic Double getF1Score()
null
for nonepublic AggregateClassificationMetrics setF1Score(Double f1Score)
f1Score
- f1Score or null
for nonepublic Double getLogLoss()
null
for nonepublic AggregateClassificationMetrics setLogLoss(Double logLoss)
logLoss
- logLoss or null
for nonepublic Double getPrecision()
null
for nonepublic AggregateClassificationMetrics setPrecision(Double precision)
precision
- precision or null
for nonepublic Double getRecall()
null
for nonepublic AggregateClassificationMetrics setRecall(Double recall)
recall
- recall or null
for nonepublic Double getRocAuc()
null
for nonepublic AggregateClassificationMetrics setRocAuc(Double rocAuc)
rocAuc
- rocAuc or null
for nonepublic Double getThreshold()
null
for nonepublic AggregateClassificationMetrics setThreshold(Double threshold)
threshold
- threshold or null
for nonepublic AggregateClassificationMetrics set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public AggregateClassificationMetrics clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2023 Google. All rights reserved.