Abstract Affordable and clean energy is an important UN sustainable development goal. Solar energy is more difficult to control than fossil fuels, highlighting the need for accurate solar power forecasts. This study develops three variants of the transformer networks, called…