util_ai#

Error Measurement#

mean_absolute_error(y_true, y_pred)

Calculate mean absolute error between y_true and y_pred.

mean_absolute_percentage_error(y_true, y_pred)

Calculate mean absolute percentage error between y_true and y_pred.

mean_percentage_error(y_true, y_pred)

Calculate mean percentage error between y_true and y_pred.

mean_squared_error(y_true, y_pred)

Calculate mean squared error between y_true and y_pred.

mean_squared_log_error(y_true, y_pred)

Calculate mean squared log error between y_true and y_pred.

r2_score(y_true, y_pred)

Calculate R^2 (coefficient of determination) regression score function.

root_mean_squared_error(y_true, y_pred)

Calculate root mean squared error between y_true and y_pred.