class_docstr: Embarrassingly Shallow Autoencoders for Sparse Data.
  
  Parameters
  ----------
  name: string, optional, default: 'EASEᴿ'
      The name of the recommender model.
  
  lamb: float, optional, default: 500
      L2-norm regularization-parameter λ ∈ R+.
  
  posB: boolean, optional, default: False
      Remove Negative Weights
  
  trainable: boolean, optional, default: True
      When False, the model is not trained and Cornac assumes that the model is already         trained. 
      
  verbose: boolean, optional, default: False
      When True, some running logs are displayed.
  
  seed: int, optional, default: None
      Random seed for parameters initialization.
  
  References
  ----------
  * Steck, H. (2019, May). "Embarrassingly shallow autoencoders for sparse data."     In The World Wide Web Conference (pp. 3251-3257).
class_docstr_tok: ["Embarrassingly","Shallow","Autoencoders","for","Sparse","Data",".","Parameters","--","--","--","--","--","name",":","string",",","optional",",","default",":","'EASE\u1d3f'","The","name","of","the","recommender","model",".","lamb",":","float",",","optional",",","default",":","500","L2-norm","regularization-parameter","\u03bb","\u2208","R+",".","posB",":","boolean",",","optional",",","default",":","False","Remove","Negative","Weights","trainable",":","boolean",",","optional",",","default",":","True","When","False",",","the","model","is","not","trained","and","Cornac","assumes","that","the","model","is","already","trained",".","verbose",":","boolean",",","optional",",","default",":","False","When","True",",","some","running","logs","are","displayed",".","seed",":","int",",","optional",",","default",":","None","Random","seed","for","parameters","initialization",".","References","--","--","--","--","--","*","Steck",",","H.","(","2019",",","May",")",".","``","Embarrassingly","shallow","autoencoders","for","sparse","data",".","''","In","The","World","Wide","Web","Conference","(","pp",".","3251-3257",")","."]
docstr: Predict the scores/ratings of a user for an item.
  
  Parameters
  ----------
  user_idx: int, required
      The index of the user for whom to perform score prediction.
  
  item_idx: int, optional, default: None
      The index of the item for which to perform score prediction.
      If None, scores for all known items will be returned.
  
  Returns
  -------
  res : A scalar or a Numpy array
      Relative scores that the user gives to the item or to all known items
docstr_tok: ["Predict","the","scores\/ratings","of","a","user","for","an","item",".","Parameters","--","--","--","--","--","user_idx",":","int",",","required","The","index","of","the","user","for","whom","to","perform","score","prediction",".","item_idx",":","int",",","optional",",","default",":","None","The","index","of","the","item","for","which","to","perform","score","prediction",".","If","None",",","scores","for","all","known","items","will","be","returned",".","Returns","--","--","--","-","res",":","A","scalar","or","a","Numpy","array","Relative","scores","that","the","user","gives","to","the","item","or","to","all","known","items"]
code: def score(self, user_idx, item_idx=None):
      """Predict the scores/ratings of a user for an item.
  
      Parameters
      ----------
      user_idx: int, required
          The index of the user for whom to perform score prediction.
  
      item_idx: int, optional, default: None
          The index of the item for which to perform score prediction.
          If None, scores for all known items will be returned.
  
      Returns
      -------
      res : A scalar or a Numpy array
          Relative scores that the user gives to the item or to all known items
  
      """
      if self.is_unknown_user(user_idx):
          raise ScoreException(
              "Can't make score prediction for user %d" % user_idx
          )
  
      if item_idx is not None and self.is_unknown_item(item_idx):
          raise ScoreException(
              "Can't make score prediction for item %d" % item_idx
          )
  
      if item_idx is None:
          return self.U[user_idx, :].dot(self.B)
  
      return self.B[item_idx, :].dot(self.U[user_idx, :])
  
file_path: cornac/cornac/models/ease/recom_ease.py
imports: import numpy
  from ..recommender import Recommender
  from ..recommender import ANNMixin, MEASURE_DOT
  from ...exception import ScoreException
label_desc: Use image node_id 3 for calling the EASE obj's underlying member method code with example usage: obj.score(user_idx, item_idx) and returns: self, self