Deep Learning in Energy Modeling: Application in Smart Buildings With Distributed Energy Generation