public final class RankingMetrics
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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
RankingMetrics() |
| Modifier and Type | Method and Description |
|---|---|
RankingMetrics |
clone() |
Double |
getAverageRank()
Determines the goodness of a ranking by computing the percentile rank from the predicted
confidence and dividing it by the original rank.
|
Double |
getMeanAveragePrecision()
Calculates a precision per user for all the items by ranking them and then averages all the
precisions across all the users.
|
Double |
getMeanSquaredError()
Similar to the mean squared error computed in regression and explicit recommendation models
except instead of computing the rating directly, the output from evaluate is computed against a
preference which is 1 or 0 depending on if the rating exists or not.
|
Double |
getNormalizedDiscountedCumulativeGain()
A metric to determine the goodness of a ranking calculated from the predicted confidence by
comparing it to an ideal rank measured by the original ratings.
|
RankingMetrics |
set(String fieldName,
Object value) |
RankingMetrics |
setAverageRank(Double averageRank)
Determines the goodness of a ranking by computing the percentile rank from the predicted
confidence and dividing it by the original rank.
|
RankingMetrics |
setMeanAveragePrecision(Double meanAveragePrecision)
Calculates a precision per user for all the items by ranking them and then averages all the
precisions across all the users.
|
RankingMetrics |
setMeanSquaredError(Double meanSquaredError)
Similar to the mean squared error computed in regression and explicit recommendation models
except instead of computing the rating directly, the output from evaluate is computed against a
preference which is 1 or 0 depending on if the rating exists or not.
|
RankingMetrics |
setNormalizedDiscountedCumulativeGain(Double normalizedDiscountedCumulativeGain)
A metric to determine the goodness of a ranking calculated from the predicted confidence by
comparing it to an ideal rank measured by the original ratings.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Double getAverageRank()
null for nonepublic RankingMetrics setAverageRank(Double averageRank)
averageRank - averageRank or null for nonepublic Double getMeanAveragePrecision()
null for nonepublic RankingMetrics setMeanAveragePrecision(Double meanAveragePrecision)
meanAveragePrecision - meanAveragePrecision or null for nonepublic Double getMeanSquaredError()
null for nonepublic RankingMetrics setMeanSquaredError(Double meanSquaredError)
meanSquaredError - meanSquaredError or null for nonepublic Double getNormalizedDiscountedCumulativeGain()
null for nonepublic RankingMetrics setNormalizedDiscountedCumulativeGain(Double normalizedDiscountedCumulativeGain)
normalizedDiscountedCumulativeGain - normalizedDiscountedCumulativeGain or null for nonepublic RankingMetrics set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic RankingMetrics clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.