class_docstr: Defines a common interface for all recommendation models
class_docstr_tok: ["Defines","a","common","interface","for","all","recommendation","models"]
docstr: Calculates the most similar users for a userid or array of userids
  
  Parameters
  ----------
  userid : Union[int, array_like]
      The userid or an array of userids to retrieve similar users for.
  N : int, optional
      The number of similar users to return
  filter_users: array_like, optional
      An array of user ids to filter out from the results being returned
  users: array_like, optional
      An array of user ids to include in the output. If not set all users in the training
      set will be included. Cannot be used with the filter_users options
  
  Returns
  -------
  tuple
      Tuple of (userids, scores) arrays
docstr_tok: ["Calculates","the","most","similar","users","for","a","userid","or","array","of","userids","Parameters","--","--","--","--","--","userid",":","Union","[","int",",","array_like","]","The","userid","or","an","array","of","userids","to","retrieve","similar","users","for",".","N",":","int",",","optional","The","number","of","similar","users","to","return","filter_users",":","array_like",",","optional","An","array","of","user","ids","to","filter","out","from","the","results","being","returned","users",":","array_like",",","optional","An","array","of","user","ids","to","include","in","the","output",".","If","not","set","all","users","in","the","training","set","will","be","included",".","Can","not","be","used","with","the","filter_users","options","Returns","--","--","--","-","tuple","Tuple","of","(","userids",",","scores",")","arrays"]
code: def similar_users(self, userid, N=10, filter_users=None, users=None):
      """
      Calculates the most similar users for a userid or array of userids
  
      Parameters
      ----------
      userid : Union[int, array_like]
          The userid or an array of userids to retrieve similar users for.
      N : int, optional
          The number of similar users to return
      filter_users: array_like, optional
          An array of user ids to filter out from the results being returned
      users: array_like, optional
          An array of user ids to include in the output. If not set all users in the training
          set will be included. Cannot be used with the filter_users options
  
      Returns
      -------
      tuple
          Tuple of (userids, scores) arrays
      """
  
file_path: implicit/implicit/recommender_base.py
imports: import warnings
  from abc import ABCMeta, abstractmethod
  import numpy
label_desc: Use image node_id 3 for calling the RecommenderBase obj's underlying member method code with example usage: obj.similar_users(userid, N, filter_users, users) without return types