Machine learning models applied to energy time-series forecasting