Nowadays, learning-based modeling methods are utilized to build a precise forecast model for renewable power sources. Computational Intelligence (CI) techniques have been recognized as effective methods in generating and optimizing renewable tools. The complexity of this variety of energy depends on its coverage of large sizes of data and parameters, which have to be investigated thoroughly. This paper covered the most resent and important researchers in the domain of renewable problems using the learning-based methods. Various types of Deep Learning (DL) and Machine Learning (ML) algorithms employed in Solar and Wind energy supplies are given. The performance of the given methods in the literature is assessed by a new taxonomy. This paper focus on conducting comprehensive state-of-the-art methods heading to performance evaluation of the given techniques and discusses vital difficulties and possibilities for extensive research. Based on the results, variations in efficiency, robustness, accuracy values, and generalization capability are the most obvious difficulties for using the learning techniques. In the case of the big dataset, the effectiveness of the learning techniques is significantly better than the other computational methods. However, applying and producing hybrid learning techniques with other optimization methods to develop and optimize the construction of the techniques is optionally indicated. In all cases, hybrid learning methods have better achievement than a single method due to the fact that hybrid methods gain the benefit of two or more techniques for providing an accurate forecast. Therefore, it is suggested to utilize hybrid learning techniques in the future to deal with energy generation problems.