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

Use user ID and item ID instead of matrix indices for ALS #1514

Closed
xwu99 opened this issue Mar 21, 2021 · 0 comments
Closed

Use user ID and item ID instead of matrix indices for ALS #1514

xwu99 opened this issue Mar 21, 2021 · 0 comments
Assignees

Comments

@xwu99
Copy link
Contributor

xwu99 commented Mar 21, 2021

Current ALS data input is using row index and column index to index rating in rating matrix. In real use cases, those row index and column index are usually using user ID and item ID and are represented with Integer or String. For example:

Use string as id

“User1”, “Item1”, 1.0
“User2”, “Item2”, 2.0

Or use integer as id

1234, 4567, 1.0
4321, 5678, 2.0

=> Row / column index for oneDAL

0, 1, 1.0
1, 1, 2.0

Other framework such as Spark MLlib ALS will handle this string/integer ID out of box. We need to do an extra data step to map from UserID/ItemID to row index/column index before calling DAL ALS and map back. Is it possible or more efficient to handle this in DAL to remove these extra steps in data preprocessing/postprocessing ?

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

No branches or pull requests

2 participants