Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MFNov29Helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def userGradientUpdate(RU, P, Uu, lambda1):
# this function updates the ith row of item feature matrix P, for the vectorized gradient update
def itemGradientUpdate(RI, U, Pi, lambda2):

RI_til = np.dot(Pi,U)*np.sign(RI)
RI_hat = np.dot(Pi,U)*np.sign(RI)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the correction. This function is still unused based on the way updating the gradient.

grad = np.dot((RI_hat - RI),U) + lambda2*Pi
return grad

Expand Down