|
Algorithm 1: Training the similarity measurement model. |
Input, selection operation Output: the parameters of model D 1: for t = 0 to T-1 do 2: 3: 4: 5: 6: 7: into the Encoder E: 8: construct feature pairs: , labeled as 0; , labeled as 1 9: to model D 10: optimize model D using cross-entropy loss 11: end for |