Federated learning: a comparison of methods