public final class BinaryConfusionMatrix
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 |
---|
BinaryConfusionMatrix() |
Modifier and Type | Method and Description |
---|---|
BinaryConfusionMatrix |
clone() |
Double |
getAccuracy()
The fraction of predictions given the correct label.
|
Double |
getF1Score()
The equally weighted average of recall and precision.
|
Long |
getFalseNegatives()
Number of false samples predicted as false.
|
Long |
getFalsePositives()
Number of false samples predicted as true.
|
Double |
getPositiveClassThreshold()
Threshold value used when computing each of the following metric.
|
Double |
getPrecision()
The fraction of actual positive predictions that had positive actual labels.
|
Double |
getRecall()
The fraction of actual positive labels that were given a positive prediction.
|
Long |
getTrueNegatives()
Number of true samples predicted as false.
|
Long |
getTruePositives()
Number of true samples predicted as true.
|
BinaryConfusionMatrix |
set(String fieldName,
Object value) |
BinaryConfusionMatrix |
setAccuracy(Double accuracy)
The fraction of predictions given the correct label.
|
BinaryConfusionMatrix |
setF1Score(Double f1Score)
The equally weighted average of recall and precision.
|
BinaryConfusionMatrix |
setFalseNegatives(Long falseNegatives)
Number of false samples predicted as false.
|
BinaryConfusionMatrix |
setFalsePositives(Long falsePositives)
Number of false samples predicted as true.
|
BinaryConfusionMatrix |
setPositiveClassThreshold(Double positiveClassThreshold)
Threshold value used when computing each of the following metric.
|
BinaryConfusionMatrix |
setPrecision(Double precision)
The fraction of actual positive predictions that had positive actual labels.
|
BinaryConfusionMatrix |
setRecall(Double recall)
The fraction of actual positive labels that were given a positive prediction.
|
BinaryConfusionMatrix |
setTrueNegatives(Long trueNegatives)
Number of true samples predicted as false.
|
BinaryConfusionMatrix |
setTruePositives(Long truePositives)
Number of true samples predicted as true.
|
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 BinaryConfusionMatrix setAccuracy(Double accuracy)
accuracy
- accuracy or null
for nonepublic Double getF1Score()
null
for nonepublic BinaryConfusionMatrix setF1Score(Double f1Score)
f1Score
- f1Score or null
for nonepublic Long getFalseNegatives()
null
for nonepublic BinaryConfusionMatrix setFalseNegatives(Long falseNegatives)
falseNegatives
- falseNegatives or null
for nonepublic Long getFalsePositives()
null
for nonepublic BinaryConfusionMatrix setFalsePositives(Long falsePositives)
falsePositives
- falsePositives or null
for nonepublic Double getPositiveClassThreshold()
null
for nonepublic BinaryConfusionMatrix setPositiveClassThreshold(Double positiveClassThreshold)
positiveClassThreshold
- positiveClassThreshold or null
for nonepublic Double getPrecision()
null
for nonepublic BinaryConfusionMatrix setPrecision(Double precision)
precision
- precision or null
for nonepublic Double getRecall()
null
for nonepublic BinaryConfusionMatrix setRecall(Double recall)
recall
- recall or null
for nonepublic Long getTrueNegatives()
null
for nonepublic BinaryConfusionMatrix setTrueNegatives(Long trueNegatives)
trueNegatives
- trueNegatives or null
for nonepublic Long getTruePositives()
null
for nonepublic BinaryConfusionMatrix setTruePositives(Long truePositives)
truePositives
- truePositives or null
for nonepublic BinaryConfusionMatrix set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public BinaryConfusionMatrix clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.