docstr: This method performs Singular Value Decomposition over the training data.
docstr_tok: ["This","method","performs","Singular","Value","Decomposition","over","the","training","data","."]
code: def fit(self):
      """
      This method performs Singular Value Decomposition over the training data.
  
      """
  
      u, s, vt = svds(self.matrix, k=self.factors)
      s_diagonal_matrix = np.diag(s)
      self.prediction_matrix = np.dot(np.dot(u, s_diagonal_matrix), vt)
  
file_path: CaseRecommender/caserec/recommenders/rating_prediction/svd.py
imports: import numpy
  from scipy.sparse.linalg import svds
  from caserec.recommenders.rating_prediction.base_rating_prediction import BaseRatingPrediction
  from caserec.utils.extra_functions import timed
label_desc: Use image node_id 3 for calling the SVD obj's underlying member method code with example usage: obj.fit() without return types