Created
June 1, 2019 04:52
-
-
Save singhrahuldps/21210684e5ad72eac9beb57a57cddae4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get a batch -> (user, item and rating arrays) from the dataframe | |
def get_batch(ratings, start:int, end:int): | |
return ratings[user_col][start:end].values, ratings[item_col][start:end].values, ratings[rating_col][start:end].values |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment