class_docstr: The known rating algorithm memorizes ratings provided in the fit method.
class_docstr_tok: ["The","known","rating","algorithm","memorizes","ratings","provided","in","the","fit","method","."]
code: def predict_for_user(self, user, items, ratings=None):
      uscores = self.ratings.xs(user, level="user", drop_level=True)
      return uscores.rating.reindex(items)
  
imports: import logging
  from collections.abc import Iterable, Sequence
  import pandas
  import numpy
  from ..data import sparse_ratings
  from .None import Predictor, Recommender, CandidateSelector
  from ..util import derivable_rng
  from .bias import Bias
  from .ranking import TopN
label_desc: Use image node_id 2 for calling the KnownRating obj's underlying member method code with example usage: obj.predict_for_user(user, items, ratings) and returns: uscores