docstr: This method computes a final rating for unknown pairs (user, item)
docstr_tok: ["This","method","computes","a","final","rating","for","unknown","pairs","(","user",",","item",")"]
code: def predict(self):
      """
      This method computes a final rating for unknown pairs (user, item)
  
      """
  
      if self.test_file is not None:
          for user in self.test_set["users"]:
              for item in self.test_set["feedback"][user]:
                  self.predictions.append(
                      (
                          user,
                          item,
                          self.predict_score(
                              self.user_to_user_id[user],
                              self.item_to_item_id[item],
                              True,
                          ),
                      )
                  )
      else:
          raise NotImplemented
  
file_path: CaseRecommender/caserec/recommenders/rating_prediction/nnmf.py
imports: import numpy
  from sklearn.decomposition import NMF
  from caserec.recommenders.rating_prediction.base_rating_prediction import BaseRatingPrediction
  from caserec.utils.extra_functions import timed
label_desc: Use image node_id 5 for calling the NNMF obj's underlying member method code with example usage: obj.predict() without return types