Skip to main content
. 2022 Nov 22;22(23):9044. doi: 10.3390/s22239044
Algorithm 2. The proposed transfer weight optimization and target positioning
Input: (1). Source domain DS; (2) Target domain DT; (3) Number of instances nT,nS;
Output: (1). Domain mapping of XS, XT; (2). Weighting transfer Wmi; (3). Target labels yT;
1. Initialize W
2. for l=1,2,,L do
3.   for m=1,2,,nT do
4.      for i=1,2,,nof do
5.         Compute co-occurrence C(m,i) 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 (JS(sp), JT(sp), JC)
10. end for
11. for l=1,2,,L do
12.   for i=1,2,,nof do
13.      for m=1,2,,nT do
14.         Compute Wmi by using Equations (3)–(7)
15.      end for
16.   end for
17. end for
18. Train a classifier from XS_h and yS by adjusting weights of source samples Wmi
19. Estimate yT on XT_h by applying the trained classifier f((Xs_h,yS),Wmi)
20. return XS, XT, yT, Wmi