Research Article

General Collaborative Filtering for Web Service QoS Prediction

Algorithm 2

TrainModel(,,,,,,).
Input:—Training set
—number of users
—number of services
—dimension of latent vectors
—learning rate
—batch size
—loss function
Output:  —Model
1: =BuildModel()
2: opt=Adam(lr=, beta_1=0.5)
3: .complie(optimizer=opt, loss=)
4: for  i = 1 to epochs  do
5: ==Sample(T,t)
6: ,,=Split()
7: .train_on_batch(input=[,],label=)
8: end
9: return return