Skip to content

Instantly share code, notes, and snippets.

@fred-xue
fred-xue / ExplicitMF.py
Created February 8, 2022 22:23 — forked from EthanRosenthal/ExplicitMF.py
Class for training explicit matrix factorization model using either ALS or SGD
class ExplicitMF():
def __init__(self,
ratings,
n_factors=40,
learning='sgd',
item_fact_reg=0.0,
user_fact_reg=0.0,
item_bias_reg=0.0,
user_bias_reg=0.0,
verbose=False):