In machine learning, Bayesian classifier is based on the application of Bayesian theorem under the assumption of strong independence between features, and is a series of simple probability classifiers. The paper introduces the principle and research purpose of Bayesian algorithm. First, this study analyzes the advantages and disadvantages of algorithms in solving similar problems, then, Bayesian classification is based on a predetermined assumption that when classifying targets, the conditional independence of each keyword must be prioritized, using Bayesian classification Shi's theory must pay attention to the analysis of classification-related theories and classification and coefficient weighting algorithms. Finally, an experimental test is carried out with the economic news classification problem, which proves that the improved algorithm can improve the accuracy of the economic news classification problem.