Research Article

Application of Conditional Random Field Model Based on Machine Learning in Online and Offline Integrated Educational Resource Recommendation

Algorithm 1

RGP algorithm.
(i)Enter the user's rating data D for educational resources, the text set of comments by users, and educational resources
(ii)Output RGP prediction model
(1)Randomly initialize all parameters of the model θ
(2)For p, item x, in score data D.
(3)Construct the comment text map and of user p and educational resource x.
(4)Assume based on equations (1) to (8) and equations (13) to (14).
(5)According to equation (15), the backward propagation algorithm is used to calculate the gradient of all parameters θ.
(6)Gradient descent method (Adam) is used to update parameters
(7)end for
(8)return