docstr: Most Popular for Item Recommendation
  
  This algorithm predicts a rank for each user using the count of number of feedback of users and items
  
  Usage::
  
      >> MostPopular(train, test).compute()
  
  :param train_file: File which contains the train set. This file needs to have at least 3 columns
  (user item feedback_value).
  :type train_file: str
  
  :param test_file: File which contains the test set. This file needs to have at least 3 columns
  (user item feedback_value).
  :type test_file: str, default None
  
  :param output_file: File with dir to write the final predictions
  :type output_file: str, default None
  
  :param sep: Delimiter for input files
  :type sep: str, default '       '
  
  :param output_sep: Delimiter for output file
  :type output_sep: str, default '        '
docstr_tok: ["Most","Popular","for","Item","Recommendation","This","algorithm","predicts","a","rank","for","each","user","using","the","count","of","number","of","feedback","of","users","and","items","Usage",":",":",">",">","MostPopular","(","train",",","test",")",".compute","(",")",":","param","train_file",":","File","which","contains","the","train","set",".","This","file","needs","to","have","at","least","3","columns","(","user","item","feedback_value",")",".",":","type","train_file",":","str",":","param","test_file",":","File","which","contains","the","test","set",".","This","file","needs","to","have","at","least","3","columns","(","user","item","feedback_value",")",".",":","type","test_file",":","str",",","default","None",":","param","output_file",":","File","with","dir","to","write","the","final","predictions",":","type","output_file",":","str",",","default","None",":","param","sep",":","Delimiter","for","input","files",":","type","sep",":","str",",","default","'","'",":","param","output_sep",":","Delimiter","for","output","file",":","type","output_sep",":","str",",","default","'","'"]
code: def __init__(
      self,
      train_file=None,
      test_file=None,
      output_file=None,
      sep="\t",
      output_sep="\t",
  ):
      """
      Most Popular for Item Recommendation
  
      This algorithm predicts a rank for each user using the count of number of feedback of users and items
  
      Usage::
  
          >> MostPopular(train, test).compute()
  
      :param train_file: File which contains the train set. This file needs to have at least 3 columns
      (user item feedback_value).
      :type train_file: str
  
      :param test_file: File which contains the test set. This file needs to have at least 3 columns
      (user item feedback_value).
      :type test_file: str, default None
  
      :param output_file: File with dir to write the final predictions
      :type output_file: str, default None
  
      :param sep: Delimiter for input files
      :type sep: str, default '\t'
  
      :param output_sep: Delimiter for output file
      :type output_sep: str, default '\t'
  
      """
  
      super(MostPopular, self).__init__(
          train_file=train_file,
          test_file=test_file,
          output_file=output_file,
          sep=sep,
          output_sep=output_sep,
      )
  
      self.recommender_name = "Most Popular"
  
file_path: CaseRecommender/caserec/recommenders/rating_prediction/most_popular.py
imports: from caserec.recommenders.rating_prediction.base_rating_prediction import BaseRatingPrediction
  from caserec.utils.extra_functions import timed
  import numpy
label_desc: Use image node_id 1 to create a new MostPopular object from inherited base classes: BaseRatingPrediction with example: obj = MostPopular(train_file, test_file, output_file, sep, output_sep)