|
Algorithm 2 Pseudo Code for ODAELM-T. |
| Input: |
| the number of hidden layer neurons; |
| the activation function type; |
| the source domain data; |
| 1: Initialize labeled and unlabeled set as and , respectively. |
| 2: Initialize the source classifier of L hidden nodes using with ; |
| 3: Let and 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
then
|
| 8: Add x into ; |
| 9: Select a group of samples as in the target domain for labeling; |
| 10: if
is empty then
|
| 11: ; |
| 12: Initialize a target classifier of L hidden nodes using Equation (17); |
| 13: else
|
| 14: perform unlabeled incremental learning where increment is x; |
| 15: ; |
| 16: perform unlabeled decremental learning where decrement is ; |
| 17: when the labeling process completes, ; |
| 18: perform labeled incremental learning where increment is ; |
| 19: end if
|
| 20: else
|
| 21: Add x into ; |
| 22: perform unlabeled incremental learning where the increment is x; |
| 23: end if
|
| 24: end while
|