(self)
return predictions
Predict ratings for every user and item.
Predict ratings for every user and item.
Predict ratings for every user and item .
def predict_all(self):
        """ Predict ratings for every user and item."""
        predictions = self.user_vecs.dot(self.item_vecs.T)
        predictions += self.global_bias + self.user_bias[:, np.newaxis] + self.item_bias[np.newaxis, :]
        return predictions
def predict_all ( self ) : predictions = self . user_vecs . dot ( self . item_vecs . T ) predictions += self . global_bias + self . user_bias [ : , np . newaxis ] + self . item_bias [ np . newaxis , : ] return predictions