Skip to content

Instantly share code, notes, and snippets.

View rezsa's full-sized avatar

Rezsa Farahani rezsa

View GitHub Profile
rezsa /
Created November 10, 2014 20:55
Collaborative Filtering ALS Recommender System using Spark MLlib adapted from the Spark Summit 2014 Recommender System training example
#!/usr/bin/env python
import sys
import itertools
from math import sqrt
from operator import add
from os.path import join, isfile, dirname
from time import time
from pyspark import SparkConf, SparkContext