Skip to content

Instantly share code, notes, and snippets.

Created July 6, 2016 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/547c9080e8087ce90c48b43cfeb3c927 to your computer and use it in GitHub Desktop.
Save anonymous/547c9080e8087ce90c48b43cfeb3c927 to your computer and use it in GitHub Desktop.
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