RankingMetrics(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Evaluation metrics used by weighted-ALS models specified by feedback_type=implicit.
Attributes |
|
---|---|
Name | Description |
mean_average_precision |
google.protobuf.wrappers_pb2.DoubleValue
Calculates a precision per user for all the items by ranking them and then averages all the precisions across all the users. |
mean_squared_error |
google.protobuf.wrappers_pb2.DoubleValue
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. |
normalized_discounted_cumulative_gain |
google.protobuf.wrappers_pb2.DoubleValue
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. |
average_rank |
google.protobuf.wrappers_pb2.DoubleValue
Determines the goodness of a ranking by computing the percentile rank from the predicted confidence and dividing it by the original rank. |