docstr: Extends compute method from BaseItemRecommendation. Method to run recommender algorithm
  
  :param verbose: Print recommender and database information
  :type verbose: bool, default True
  
  :param metrics: List of evaluation metrics
  :type metrics: list, default None
  
  :param verbose_evaluation: Print the evaluation results
  :type verbose_evaluation: bool, default True
  
  :param as_table: Print the evaluation results as table
  :type as_table: bool, default False
  
  :param table_sep: Delimiter for print results (only work with verbose=True and as_table=True)
  :type table_sep: str, default ' '
docstr_tok: ["Extends","compute","method","from","BaseItemRecommendation",".","Method","to","run","recommender","algorithm",":","param","verbose",":","Print","recommender","and","database","information",":","type","verbose",":","bool",",","default","True",":","param","metrics",":","List","of","evaluation","metrics",":","type","metrics",":","list",",","default","None",":","param","verbose_evaluation",":","Print","the","evaluation","results",":","type","verbose_evaluation",":","bool",",","default","True",":","param","as_table",":","Print","the","evaluation","results","as","table",":","type","as_table",":","bool",",","default","False",":","param","table_sep",":","Delimiter","for","print","results","(","only","work","with","verbose=True","and","as_table=True",")",":","type","table_sep",":","str",",","default","'","'"]
code: def compute(
      self,
      verbose=True,
      metrics=None,
      verbose_evaluation=True,
      as_table=False,
      table_sep="\t",
  ):
      """
      Extends compute method from BaseItemRecommendation. Method to run recommender algorithm
  
      :param verbose: Print recommender and database information
      :type verbose: bool, default True
  
      :param metrics: List of evaluation metrics
      :type metrics: list, default None
  
      :param verbose_evaluation: Print the evaluation results
      :type verbose_evaluation: bool, default True
  
      :param as_table: Print the evaluation results as table
      :type as_table: bool, default False
  
      :param table_sep: Delimiter for print results (only work with verbose=True and as_table=True)
      :type table_sep: str, default '\t'
  
      """
  
      super(RandomRec, self).compute(verbose=verbose)
  
      if verbose:
          print("prediction_time:: %4f sec" % timed(self.predict))
          print("\n")
  
      else:
          self.predict()
  
      self.write_ranking()
  
      if self.test_file is not None:
          self.evaluate(
              metrics,
              verbose_evaluation,
              as_table=as_table,
              table_sep=table_sep,
          )
  
file_path: CaseRecommender/caserec/recommenders/item_recommendation/random_rec.py
imports: import random
  from caserec.recommenders.item_recommendation.base_item_recommendation import BaseItemRecommendation
  from caserec.utils.extra_functions import timed
label_desc: Use image node_id 3 for calling the RandomRec obj's underlying member method code with example usage: obj.compute(verbose, metrics, verbose_evaluation, as_table, table_sep) without return types