|
Algorithm 2 Tr-Predictior |
-
Input:
Suppose is a set containing multiple workload sequences of different lengths and the base learning learner LSTM.
-
Output:
The ensemble transfer model obtains the predicted value through the following formula:
For t = 1,2,…,S.
-
1:
Call Equations (1) and (3) to obtain the source domain data, recorded as (length n);
-
2:
Call Equations (4)–(6) to preprocess data, extract target data as (length m), .
-
3:
Set the initial weight vector:
.
-
4:
Set the total weight of : . The total weight of is .
-
5:
Call the AdaBoost-LSTM (Algorithm 1) to train data , freeze the weight of the top n source data in the process of training and only update the weight of the target , record the above training model as . (Train hypothesis in for is .)
-
6:
Use Step 2 in Algorithm 1 to calculate the adjusted error of each instance in the target domain: , change in algorithm 1 to , use it to calculate the adjusted error of each instance in the source domain: .
-
7:
Calculate the adjusted error, , of :; if , stop and set .
-
8:
Let , freeze the weight of the target domain, then just update the weight vector of the new source domain: .( is a normalizing constant.)
End for.
-
9:
return.
|