Machine Learning Based Energy Management Model for Smart Grid and Renewable Energy Districts | Synapse