class_docstr: Global Personalized Top Frequent Items.
  
  Parameters
  ----------
  name: string, default: 'GPTop'
      The name of the recommender model.
  
  use_global_popularity: boolean, optional, default: True
      When False, no item frequency from all users' baskets are being used.
  
  use_personalized_popularity: boolean, optional, default: True
      When False, no item frequency from history baskets are being used.
  
  use_quantity: boolean, optional, default: False
      When True, constructing item frequency based on its quantity (getting from extra_data).
      The data must be in fmt 'UBITJson'.
  
  References
  ----------
  Ming Li, Sami Jullien, Mozhdeh Ariannezhad, and Maarten de Rijke. 2023.
  A Next Basket Recommendation Reality Check.
  ACM Trans. Inf. Syst. 41, 4, Article 116 (October 2023), 29 pages. https://doi.org/10.1145/3587153
code: def __init__(
      self,
      name="GPTop",
      use_global_popularity=True,
      use_personalized_popularity=True,
      use_quantity=False,
  ):
      super().__init__(name=name, trainable=False)
      self.use_global_popularity = use_global_popularity
      self.use_personalized_popularity = use_personalized_popularity
      self.use_quantity = use_quantity
      self.item_freq = Counter()
  
file_path: cornac/cornac/models/gp_top/recom_gp_top.py
imports: import numpy
  from collections import Counter
  from ..recommender import NextBasketRecommender
label_desc: Use image node_id 1 to create a new GPTop object from inherited base classes: NextBasketRecommender with example: obj = GPTop(name, use_global_popularity, use_personalized_popularity, use_quantity)