For the integration of distributed generations such as large-scale wind and photovoltaic power generation, the characteristics of the distribution network are fundamentally changed. The intermittence, variability, and uncertainty of wind and photovoltaic power generation make the adjustment of the network peak load and the smooth control of power become the key issues of the distribution network to accept various types of distributed power. This paper uses data-driven thinking to describe the uncertainty of scenery output, and introduces it into the power flow calculation of distribution network with multi-class DG, improving the processing ability of data, so as to better predict DG output. For the problem of network stability and operational control complexity caused by DG access, using KELM algorithm to simplify the complexity of the model and improve the speed and accuracy. By training and testing the KELM model, various DG configuration schemes that satisfy the minimum network loss and constraints are given, and the voltage stability evaluation index is introduced to evaluate the results. The general recommendation for DG configuration is obtained. That is, DG is more suitable for accessing the lower point of the network voltage or the end of the network. By configuring the appropriate capacity, it can reduce the network loss, improve the network voltage stability, and the quality of the power supply. Finally, the IEEE33&69-bus radial distribution system is used to simulate, and the results are compared with the existing particle swarm optimization (PSO), genetic algorithm (GA), and support vector machine (SVM). The feasibility and effectiveness of the proposed model and method are verified.