lyst / lightfm

A Python implementation of LightFM, a hybrid recommendation algorithm.
Apache License 2.0
4.73k stars 687 forks source link

Request for Opinion: User IDs which are not 32 bit integers #243

Closed RAbraham closed 6 years ago

RAbraham commented 6 years ago

Hi, This is a request for advice if you have the time :).

LightFM and other libraries ask for a 32 bit integer id e.g for users. But, our user id is a UUID e.g. 0003374a-a35c-46ed-96d2-0ea32b753199. I was wondering what you would recommend in scenarios like these. What I have come up with is:

Thanks, Rajiv

maciejkula commented 6 years ago

Could you ask this question on StackOverflow and post a link here so that I could respond? That way more users can benefit from the response.

RAbraham commented 6 years ago

Absolutely. Here it is: https://stackoverflow.com/questions/48068147/recommender-systems-convert-uuids-to-32-bit-ints-for-recommender-libraries

Thanks a bunch.