relative_error = np.mean(np.abs(y_true - y_pred) / y_true, axis=0)
显示relative-error
改为
relative_error = np.average(np.abs(y_true - y_pred) / y_true)即可
python计算相当误差,显示relative-error
最新推荐文章于 2024-02-14 14:51:29 发布
relative_error = np.mean(np.abs(y_true - y_pred) / y_true, axis=0)
显示relative-error
改为
relative_error = np.average(np.abs(y_true - y_pred) / y_true)即可