docstr: Method to run the recommender algorithm
  
  :param verbose: Print the information about recommender
  :type verbose: bool, default True
docstr_tok: ["Method","to","run","the","recommender","algorithm",":","param","verbose",":","Print","the","information","about","recommender",":","type","verbose",":","bool",",","default","True"]
code: def compute(self, verbose=True):
      """
      Method to run the recommender algorithm
  
      :param verbose: Print the information about recommender
      :type verbose: bool, default True
  
      """
  
      # read files
      self.read_files()
  
      # initialize empty ranking (Don't remove: important to Cross Validation)
      self.ranking = []
  
      if verbose:
          test_info = None
  
          main_info = {
              "title": "Item Recommendation > " + self.recommender_name,
              "n_users": len(self.train_set["users"]),
              "n_items": len(self.train_set["items"]),
              "n_interactions": self.train_set["number_interactions"],
              "sparsity": self.train_set["sparsity"],
          }
  
          if self.test_file is not None:
              test_info = {
                  "n_users": len(self.test_set["users"]),
                  "n_items": len(self.test_set["items"]),
                  "n_interactions": self.test_set[
                      "number_interactions"
                  ],
                  "sparsity": self.test_set["sparsity"],
              }
  
          print_header(main_info, test_info)
  
file_path: CaseRecommender/caserec/recommenders/item_recommendation/base_item_recommendation.py
imports: from scipy.spatial.distance import squareform, pdist
  import numpy
  from caserec.evaluation.item_recommendation import ItemRecommendationEvaluation
  from caserec.utils.extra_functions import print_header
  from caserec.utils.process_data import ReadFile, WriteFile
label_desc: Use image node_id 7 for calling the BaseItemRecommendation obj's underlying member method code with example usage: obj.compute(verbose) without return types