PRED is a general function that takes a ranker and a M N-best lists and generates a set of M N -dim output vector y representing the predicted reciprocal rank.
suppose a 3-best list and a ranker predicts ranks (1,3,2) for the 1st, 2nd, and 3rd hypotheses, respectively.