Beispiel #1
0
 def predict(self, X, **kwargs):
     self.logger.info("Predicting ranks")
     if isinstance(X, dict):
         result = dict()
         for n, scores in self.predict_scores(X, **kwargs).items():
             predicted_rankings = scores_to_rankings(scores)
             result[n] = predicted_rankings
         return result
     return ObjectRanker.predict(self, X, **kwargs)
Beispiel #2
0
 def predict(self, X, **kwargs):
     return ObjectRanker.predict(self, X, **kwargs)