Skip to content

Instantly share code, notes, and snippets.

Avatar

Rezsa Farahani rezsa

View GitHub Profile
@rezsa
rezsa / recommender_spark.py
Created Nov 10, 2014
Collaborative Filtering ALS Recommender System using Spark MLlib adapted from the Spark Summit 2014 Recommender System training example
View recommender_spark.py
#!/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