当前位置:网站首页>Neuralcf neural collaborative filtering network
Neuralcf neural collaborative filtering network
2022-07-29 06:46:00 【yc_ ZZ】
NeuralCF
One 、 summary
CF( Collaborative filtering ) Combined with deep learning
Review matrix decomposition
Background of the model
The model structure of matrix decomposition is relatively simple , It is obtained by inner product of user hidden vector and item hidden vector “ Similarity degree ”, Here, similarity refers to the prediction of the score . In particular, the output layer cannot effectively fit the optimization objectives , The model is easy to be in the state of under fitting ( Under fitting means that the degree of model fitting is not high ). Therefore, on this basis NeuralCF Model .
Two 、NeuralCF The structure of the original model
NeuralCF use “ Multilayer neural network + Output layer ” Instead of the simple inner product operation in the matrix decomposition model
Advantage is :
1、 Let the user vector and the item vector intersect more fully , Get more valuable feature combination information
2、 Introduce more nonlinear features , Make the model more expressive
3、 ... and 、 Introduction of hybrid model
GMF- Generalized matrix factorization
Here we explain the user hidden vector P u = P T v u U P_{u}=P^{T}v^{U}_{u} Pu=PTvuU , Item implicit vector isomorphism
class GMF(nn.Module):
def __init__(self,user_num, item_num, factor_num):
super(GMF,self).__init__()
self.embed_user_GMF = nn.Embedding(user_num,factor_num)
self.embed_item_GMF = nn.Embedding(item_num,factor_num)
self.predict_layer = nn.Linear(factor_num,1)
self._init_weight_()
def _init_weight_(self):
nn.init.normal_(self.embed_item_GMF.weight,std=0.01)
nn.init.normal_(self.embed_user_GMF.weight,std=0.01)
def forward(self,user,item):
embed_user_GMF = self.embed_user_GMF(user)
embed_item_GMF = self.embed_item_GMF(item)
output_GMF = embed_user_GMF*embed_item_GMF
prediction = self.predict_layer(output_GMF)
return prediction.view(-1)
MLP( Multilayer perceptron )
Usually , Each layer is fully connected to the next layer , The output of each artificial neuron on one layer becomes the input of several artificial neurons on the next layer .MLP There are at least three layers of artificial neurons , As shown in the figure below .
The formula is as follows :
Four 、Neural CF hybrid model
In order to make the fusion model more flexible , We allow GMF and MLP Learning independent embeddedness , And combine the two models by connecting their final hidden layer output .
The formula is as follows :
边栏推荐
- day03_2_作业
- Base64与File之间的相互转化
- Callable 的使用
- day06_ Classes and objects
- Hongke education you want to enter the field of TSN? Hongke teaches you how to build TSN test system
- Hongke | uses jesd204 serial interface to bridge analog and digital worlds at high speed
- Several misunderstandings about DDoS
- 什么是DNS放大攻击
- day15_泛型
- Day16 set
猜你喜欢
10种常见的软件架构模式
8、 Network security
Design of IIR filter based on FPGA
Design and simulation code of 4-bit subtracter based on FPGA
day03_1_流程控制
After the EtherCAT master station is disconnected, how to ensure that the target system is not affected by the fault?
CNN-卷积神经网络
day12_ Multithreading
Condition 条件对象源码浅读
Hongke automation SoftPLC | Hongke kPa modk operation environment and construction steps (2) -- modk operation environment construction
随机推荐
Complex floating point division of vivado IP core floating point
MySQL 事物四种隔离级别分析
循环神经网络RNN
What is WAF protection
Hongke automation SoftPLC | modk operation environment and construction steps (1) -- Introduction to operation environment
9、 Networking technology
day02_基本语法
Hongke share | bring you a comprehensive understanding of "can bus error" (II) -- can error types
find命令详解(文章最后运维最常用操作)
Condition 条件对象源码浅读
Inventory | major network security events of global key information infrastructure
What is DNS amplification attack
FIR filter design (1) -- using the FDATool toolbox of MATLAB to design FIR filter parameters
TCP based online dictionary
IPv6 representation and configuration cases
基于FPGA的IIR型滤波器设计
DDoS攻击与CC攻击的区别
Callable 的使用
4、 LAN and man
有用网站