Distributed Learning and its Application for Time-Series Prediction