Electricity energy has a crucial importance role for social and economic developments all over the world. Nowadays, the worldwide generation of electricity mostly depends on conventional sources. These sources are limited in the environment and also responsible for ecological problems like environmental pollution. Renewable energy sources have important aspects such as feasibility, efficiency, and environment-friendly in comparison to conventional energy resources. In order to overcome environmental problems, this proposed study focuses on solar photovoltaic hybrid system for eco-friendly electric vehicle charging and house based on machine learning system. In order to realize numerical study, Homer Pro and PVSOL software are used. Various parameters of economic feasibility, sizing strategies with logical advancements, and optimization methods are numerically considered and analyzed to compare measurement one.