| Algorithm 1: Algorithm for the parameter optimization of PDTN. | ||
|
Input: the input features of source and target data: , ; training labels of source data: ; fc layers: ; learning rate: and trade-off parameters , , and . Initialize:, randomly. Output: the optimized parameters: , . while the total loss or iter maxIter do (1) Generate a mini-batch features of source and target data: (2) Extract the high-level features of source and target data: (3) Calculate the negative-valence and positive-valence feature centers and in each mini-batch by the Equations (4) and (5); (4) Calculate the feature center of qth class in each mini-batch by the Equation (7); (5) if iter : Initialize global centers , , and (or ) in whole source data using steps (4) and (5); else:
(6) Calculate , , , , and using Equations (2), (6), and (10)–(12), respectively; (7) Update the parameter and :
(8) . end while |