| Algorithm 2. The proposed transfer weight optimization and target positioning |
|
Input: (1). Source domain ; (2) Target domain ; (3) Number of instances ; |
|
Output: (1). Domain mapping of , ; (2). Weighting transfer ; (3). Target labels ; |
| 1. Initialize W
|
| 2. for
do
|
| 3. for
do
|
| 4. for
do
|
| 5. Compute co-occurrence using Equation (2) |
| 6. end for
|
| 7. Obtain the co-occurrence vector of the mth target sample |
| 8. end for
|
| 9. Obtain the common and specific feature matrices of different domains (, , ) |
| 10. end for
|
| 11. for
do
|
| 12. for
do
|
| 13. for
do
|
| 14. Compute by using Equations (3)–(7) |
| 15. end for
|
| 16. end for
|
| 17. end for
|
| 18. Train a classifier from and by adjusting weights of source samples
|
| 19. Estimate on by applying the trained classifier
|
| 20. return
, , ,
|