Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
One liner to make feature vectors for MovieLens item data
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