|
Algorithm 1 Model Training and Forecasting Evaluation |
Require: , Ensure: Forecasting unseen stator FFT current , Forecasting unseen rotor FFT current
-
1:
Data preprocessing using method:
-
2:
Split preprocessed data into training and testing data with a ratio of 80:20, respectively
// For rotor data:
// For stator data:
-
3:
Create function to split input and output from training and testing data
-
4:
Setup several hyperparameters of Bi-LSTM model:
-
5:
while do
-
6:
Create BiLSTM layer:
-
7:
Create function to learn:
-
8:
end while
-
9:
Training evaluation
-
10:
Testing evaluation
-
11:
Calculate RMSE and MAE losses
-
12:
return
|