Federated learning: A comparison of methods