# -*- coding: utf-8 -*-
"""
Created on Fri Nov 11 16:51:33 2016

@author: Vibhore
"""

import graphlab as gl
data = gl.SFrame('./output/ratings.csv')

sf = gl.SFrame({'user_id':data['user_id'],'item_id': data['movie_id'],'rating' : data['rating']})
m = gl.recommender.create(sf, target='rating')

sf1 = m.recommend()

sf1.save('./output/sf1',format='csv')
