Resource-Adaptive Newton's Method for Distributed Learning