Predictive analysis of energy consumption in minining for making decisions