Skip to content

Instantly share code, notes, and snippets.

https://cdn.rawgit.com/cqcn1991/movie-compare/master/clusters.html
@tangent0
tangent0 / collaborative_filtering.py
Created August 12, 2018 05:44 — forked from uolter/collaborative_filtering.py
Simple collaborative filtering in python
import numpy as np
from scipy.optimize import fmin_cg
def cost(p, Y, R, alpha):
"""
Calculates collaborative filtering cost function.
Arguments
----------