|
Algorithm 1 Pseudo Code for ODAELM-S. |
| Input: |
| the number of hidden layer neurons; |
| the activation function type; |
| the source domain data; |
| 1: Initialize two empty sets, i.e., and , as labeled and unlabeled sets, respectively; |
| 2: Set activation function as and initialize an ELM with L hidden nodes with ; |
| 3: Let be defined as in Equation (9); |
| 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 to ; |
| 9: Select a group of samples from as for labeling; |
| 10: if
has more rows then
|
| 11: Update the classifier using Equations (11) and (12); |
| 12: else
|
| 13: Update the classifier using Equation (14) and (15); |
| 14: end if
|
| 15: Set and ; |
| 16: else
|
| 17: Add x to ; |
| 18: end if
|
| 19: end while
|