class_docstr: The base class for recommendation models in Analytics Zoo.
class_docstr_tok: ["The","base","class","for","recommendation","models","in","Analytics","Zoo","."]
code: def _to_prediction_rdd(result_rdd):
      return result_rdd.map(
          lambda y: UserItemPrediction(
              int(y[0]), int(y[1]), int(y[2]), y[3]
          )
      )
  
imports: import sys
  from pyspark import RDD
  from zoo.models.common import *
  from zoo.common.utils import callZooFunc
label_desc: Use image node_id 5 for calling the Recommender obj's underlying member method code with example usage: obj._to_prediction_rdd(result_rdd) and returns: result_rdd