| Algorithm 1: DFA: Deep Federated Adaptation |
| Require: Data from different houses
|
| Ensure: Adaptative forecasting models
|
| 1: Build an initial global model with public datasets using (7) |
| 2: repeat
|
| 3: Distribute to all computing devices |
| 4: Use local data to train based on with (8) |
| 5: Devices upload to the model server |
| 6: Average models with (9) |
| 7: Update the global model
|
| 8: until
|
| 9: Use (12) to optimize the convergent global model , get adaptative models
|