Created
July 6, 2016 13:30
-
-
Save anonymous/547c9080e8087ce90c48b43cfeb3c927 to your computer and use it in GitHub Desktop.
One liner to make feature vectors for MovieLens item data
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
item_features = map(lambda f: f.replace('\n', '').replace(' ', '-').lower(), | |
_ITEM_FEATURES.split(' | ')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment