Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CF toolkit: Use rankUpdate() to calculate XtX in ALS and WALS #24

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

msperlich
Copy link

Two changes, first is a typo fix, libFM writes the item_bias factor with the file extension ".mm" but tries to read it with extension ".m".

The second change is to use rankUpdate when computing XtX in the ALS and weighted ALS implementation. The function rankUpdate() provides an optimized way to compute M += alpha(uu*), which is exactly what we want.

In some simple testing on the small Netflix data I was seeing runtimes cut in half with this change.

Max Sperlich added 5 commits April 29, 2014 18:10
Conflicts:
	toolkits/collaborative_filtering/als_tensor.cpp
last_item_bias file is saved with .mm extension, but loaded with .m
This optimized calculation gives around a 2X speedup on the small netflix set
in my testing (D=20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant