Skip to content

Instantly share code, notes, and snippets.

View laravellously's full-sized avatar

Martins 'Laravellous Michael laravellously

View GitHub Profile
@laravellously
laravellously / surprise_tutorial.py
Created February 3, 2019 01:29 — forked from mahermalaeb/surprise_tutorial.py
The easy guide for building python collaborative filtering recommendation system in 2017
import zipfile
from surprise import Reader, Dataset, SVD, evaluate
# Unzip ml-100k.zip
zipfile = zipfile.ZipFile('ml-100k.zip', 'r')
zipfile.extractall()
zipfile.close()
# Read data into an array of strings
with open('./ml-100k/u.data') as f: