Frequent mountain torrent disasters have caused significant losses to human life and wealth security and restricted the economic and social development of mountain areas. Therefore, accurate identification of mountain torrent hazards is crucial for disaster prevention and reduction. In this study, based on historical mountain torrent hazards, a mountain torrent hazard prediction model was established by using Bayesian Model Average (BMA) and three classic machine learning algorithms (gradient-boosted decision tree (GBDT), backpropagation neural network (BP), and random forest (RF)). The mountain torrent hazard condition factors used in modeling were distance to river, elevation, precipitation, slope, gross domestic product (GDP), population, and land use type. Based on the proposed BMA model, flood risk maps were produced using GIS. The results demonstrated that the BMA model significantly improved upon the accuracy and stability of single models in identifying mountain torrent hazards. The F1-values (comprehensively displays the Precision and Recall) of the BMA model under three sets of test samples at different locations were 3.31–24.61% higher than those of single models. The risk assessment results of mountain torrents found that high-risk areas were mainly concentrated in the northern border and southern valleys of Yuanyang County, China. In addition, the feature importance analysis result demonstrated that distance to river and elevation were the most important factors affecting mountain torrent hazards. The construction of projects in mountainous areas should be as far away from rivers and low-lying areas as possible. The results of this study can provide a scientific basis for improving the identification methods of mountain torrent hazards and assisting decision-makers in the implementation of appropriate measures for mountain torrent hazard prevention and reduction.