Research Article
Ideological and Political Education Recommendation System Based on AHP and Improved Collaborative Filtering Algorithm
Algorithm 1
The pseudocode of proposed algorithm training process.
| | Input: | | The number of students N, the courses that students have graded W, the learning rate , and the discount factor γ | | Output: | | | | S1: Initialize for any s ∈ S, c ∈ C | | S2: Training SVD++ model, calculate from equation (3) | | S3: Get the initial state S and action A from the data. | | S4: For each episode x = 1: T do | | For z = 1: Wx do | | S5: Calculate the reward and punishment functions according to equation (8). | | S6: Apply the calculated punishment and reward functions to equation (10) | | S7: Update the V table. | | end for | | end for |
|