Skip to main content
. 2018 Mar 1;18(3):742. doi: 10.3390/s18030742
Algorithm 2 Pseudo Code for ODAELM-T.
Input:
  L:= the number of hidden layer neurons;
  Act:= the activation function type;
  SD:= the source domain data;
 1: Initialize labeled and unlabeled set as LSet and USet, respectively.
 2: Initialize the source classifier of L hidden nodes using ActType with SD;
 3: Let HS and βS be defined as Equation (17);
 4: while new sample x in the target domain arrives do
 5: Calculate the probability P for labeling;
 6: Generate random value between 0 and 1 as p;
 7: if p<P then
 8:  Add x into USet;
 9:  Select a group of samples as δSet in the target domain for labeling;
10:  if LSet is empty then
11:   LSet=δSet;
12:   Initialize a target classifier of L hidden nodes using Equation (17);
13:  else
14:   perform unlabeled incremental learning where increment is x;
15:   USet=USetδSet;
16:    perform unlabeled decremental learning where decrement is δSet;
17:   when the labeling process completes, LSet=LSet+δSet;
18:   perform labeled incremental learning where increment is δSet;
19:  end if
20: else
21:  Add x into USet;
22:  perform unlabeled incremental learning where the increment is x;
23: end if
24: end while