MGA-XGboost is a collection of all python code and data in this article. XGboostcanshu it is the main function of the moderate greedy algorithm to find the optimal parameters of xgboost. fanhua it is our integrated learning model code xunlian it is the result of our code construction and comparison with other machine learning models.