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
Constructor and Description |
---|
BinaryConfusionMatrix() |
Modifier and Type | Method and Description |
---|---|
BinaryConfusionMatrix |
clone() |
java.lang.Double |
getAccuracy()
The fraction of predictions given the correct label.
|
java.lang.Double |
getF1Score()
The equally weighted average of recall and precision.
|
java.lang.Long |
getFalseNegatives()
Number of false samples predicted as false.
|
java.lang.Long |
getFalsePositives()
Number of false samples predicted as true.
|
java.lang.Double |
getPositiveClassThreshold()
Threshold value used when computing each of the following metric.
|
java.lang.Double |
getPrecision()
The fraction of actual positive predictions that had positive actual labels.
|
java.lang.Double |
getRecall()
The fraction of actual positive labels that were given a positive prediction.
|
java.lang.Long |
getTrueNegatives()
Number of true samples predicted as false.
|
java.lang.Long |
getTruePositives()
Number of true samples predicted as true.
|
BinaryConfusionMatrix |
set(java.lang.String fieldName,
java.lang.Object value) |
BinaryConfusionMatrix |
setAccuracy(java.lang.Double accuracy)
The fraction of predictions given the correct label.
|
BinaryConfusionMatrix |
setF1Score(java.lang.Double f1Score)
The equally weighted average of recall and precision.
|
BinaryConfusionMatrix |
setFalseNegatives(java.lang.Long falseNegatives)
Number of false samples predicted as false.
|
BinaryConfusionMatrix |
setFalsePositives(java.lang.Long falsePositives)
Number of false samples predicted as true.
|
BinaryConfusionMatrix |
setPositiveClassThreshold(java.lang.Double positiveClassThreshold)
Threshold value used when computing each of the following metric.
|
BinaryConfusionMatrix |
setPrecision(java.lang.Double precision)
The fraction of actual positive predictions that had positive actual labels.
|
BinaryConfusionMatrix |
setRecall(java.lang.Double recall)
The fraction of actual positive labels that were given a positive prediction.
|
BinaryConfusionMatrix |
setTrueNegatives(java.lang.Long trueNegatives)
Number of true samples predicted as false.
|
BinaryConfusionMatrix |
setTruePositives(java.lang.Long truePositives)
Number of true samples predicted as true.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Double getAccuracy()
null
for nonepublic BinaryConfusionMatrix setAccuracy(java.lang.Double accuracy)
accuracy
- accuracy or null
for nonepublic java.lang.Double getF1Score()
null
for nonepublic BinaryConfusionMatrix setF1Score(java.lang.Double f1Score)
f1Score
- f1Score or null
for nonepublic java.lang.Long getFalseNegatives()
null
for nonepublic BinaryConfusionMatrix setFalseNegatives(java.lang.Long falseNegatives)
falseNegatives
- falseNegatives or null
for nonepublic java.lang.Long getFalsePositives()
null
for nonepublic BinaryConfusionMatrix setFalsePositives(java.lang.Long falsePositives)
falsePositives
- falsePositives or null
for nonepublic java.lang.Double getPositiveClassThreshold()
null
for nonepublic BinaryConfusionMatrix setPositiveClassThreshold(java.lang.Double positiveClassThreshold)
positiveClassThreshold
- positiveClassThreshold or null
for nonepublic java.lang.Double getPrecision()
null
for nonepublic BinaryConfusionMatrix setPrecision(java.lang.Double precision)
precision
- precision or null
for nonepublic java.lang.Double getRecall()
null
for nonepublic BinaryConfusionMatrix setRecall(java.lang.Double recall)
recall
- recall or null
for nonepublic java.lang.Long getTrueNegatives()
null
for nonepublic BinaryConfusionMatrix setTrueNegatives(java.lang.Long trueNegatives)
trueNegatives
- trueNegatives or null
for nonepublic java.lang.Long getTruePositives()
null
for nonepublic BinaryConfusionMatrix setTruePositives(java.lang.Long truePositives)
truePositives
- truePositives or null
for nonepublic BinaryConfusionMatrix set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public BinaryConfusionMatrix clone()
clone
in class com.google.api.client.json.GenericJson