Research Article

Prediction of Mg Alloy Corrosion Based on Machine Learning Models

Table 5

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.8500.6600.0280.0560.7900.6100.0300.070
MLR0.4700.2600.0690.1000.2100.1400.0800.093
SVR0.5200.3500.0710.0890.4500.3700.0800.085
XGBoost0.9400.5300.0220.0630.9500.4800.0190.078