-
Notifications
You must be signed in to change notification settings - Fork 496
Neural network based Collaborative Filtering
潜心 edited this page Oct 22, 2020
·
1 revision
Neural network-based Collaborative Filtering
创新:使用深度学习的方法进行协同过滤
采用Movielens数据集进行测试。数据集的处理见NCF
文件。
class NeuMF(keras.Model):
def __init__(self, num_users, num_items, mf_dim, layers, reg_layers, reg_mf):
super(NeuMF, self).__init__()
self.MF_Embedding_User = keras.layers.Embedding(
input_dim=num_users,
output_dim=mf_dim,
name='mf_embedding_user',
embeddings_initializer='random_uniform',
embeddings_regularizer=regularizers.l2(reg_mf[0]),
)