Revised ranking algorithm to use new train method

train.train() returns a tuple, but the ranking handler had not yet been
revised to work with that.