1. Root mean square error (RMSE):
2. Mean absolute error(MAE):
3.R-Square ($R^2$):
4.Median Absolute Deviation (MAD):
##########导入sklearn工具包##########
from sklearn import metrics
import numpy as np
RMSE = np.sqrt(mean_squared_error(y_true, y_predict))
MAE= mean_absolute_error(y_true, y_predict)
R2= r2_score(y_true, y_predict)
MAD= median_absolute_error(y_true, y_predict)