example the following is simple recipe in python which will give us an insight about how we can use the above explained performance metrics on regression modelfrom sklearn metrics import _score from sklearn metrics import mean_absolute_error from sklearn metrics import mean_squared_error x_actual [ - y_predic [ - print (' squared =', _score(x_actualy_predic)print ('mae =',mean_absolute_error(x_actualy_predic)print ('mse =',mean_squared_error(x_actualy_predic)output squared mae mse