Skip to content

Commit

Permalink
Bugfix for SVD stochastic gradient descent and RMSE calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Lin authored and Alex Lin committed Jan 16, 2012
1 parent 7032dd5 commit 040eedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scikits/crab/recommenders/svd/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def _train(self, rating_indices, update_user, update_item):
i_f = self.item_factors[item_idx]

#Compute factor updates
delta_u = err * u_i - self.regularization * u_f
delta_u = err * i_f - self.regularization * u_f
delta_i = err * u_f - self.regularization * i_f
#if necessary apply updates
if update_user:
Expand Down

0 comments on commit 040eedf

Please sign in to comment.