Machine Learning in Energy Forecasts with an Application to High Frequency Electricity Consumption Data