Skip to main content
. 2021 Apr 1;23(4):424. doi: 10.3390/e23040424
Algorithm 1: Weighted Subdomain Adaptation Network (WSAN)
        Model: Feature generator G; Auxiliary classifier CA; Classifier C.
        Input: Labeled source data {Xs, Cs} and unlabeled target data Xt.
        For i in epochs:
            Step 1: The feature generator G outputs the high-dimensional features of the two domains and inputs them into the feature generator G and classifier C.
            Step 2: Auxiliary classifier CA obtains the class-level weights. The classifier gives prediction probability output on the target samples and obtains sample-level weights to guide WLMMD to perform subdomain adaptation.
            Step 3: Train the feature generator G and classifier C to obtain the optimal parameters θ^G and θ^C by minimizing F(θG,θC);
            Step 4: Train the auxiliary classifier CA to obtain the optimal parameters θ^CA by minimizing F(θCA);