Skip to content

Instantly share code, notes, and snippets.

View benfred's full-sized avatar

Ben Frederickson benfred

View GitHub Profile
@benfred
benfred / astroid.svg
Created June 1, 2021 18:14
astroid.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# A Simple Julia Version of the algorithm described in the paper Collaborative Filtering for Implicit Feedback Datasets
# http://yifanhu.net/PUB/cf.pdf
# This was mainly an experiment for me in learning Julia, unfortunately the code below ended up
# being about the same speed as my pure python version here https://github.com/benfred/implicit
# and much much slower than the Cython version I included there.
# (fwiw The slowness is probably because I don't understand the language as well as I do Python)
function alternatingLeastSquares(input, factors, regularization)