Research Article

Prediction of Mg Alloy Corrosion Based on Machine Learning Models

Table 4

Prediction accuracy of each algorithm (the R2 and MAE calculation results for each optimized model in the training set and testing set).

ModelsEcorrIcorr
R2MAER2MAE
Training setTesting setTraining setTesting setTraining setTesting setTraining setTesting set

RF0.9000.7900.0250.0420.8500.7300.0290.041
MLR0.4300.1400.0790.0930.1600.0400.0920.043
SVR0.5900.5000.0670.0780.6000.4000.0680.090
XGBoost0.9700.7400.0130.0490.9500.6900.0200.053