class_docstr: The memorized algorithm memorizes socres provided at construction time.
class_docstr_tok: ["The","memorized","algorithm","memorizes","socres","provided","at","construction","time","."]
code: def predict_for_user(self, user, items, ratings=None):
      uscores = self.scores[self.scores.user == user]
      urates = uscores.set_index("item").rating
      return urates.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 3 for calling the Memorized obj's underlying member method code with example usage: obj.predict_for_user(user, items, ratings) and returns: urates