logo
Loading...

%用法 - Cupoy

MAE = mean_absolute_error(y, y_hat)MSE = mean_squa...

ml100-1

%用法

2020/02/28 07:21 AM
機器學習新手論壇
Kevin
觀看數:0
回答數:2
收藏數:1
ml100-1

MAE = mean_absolute_error(y, y_hat)

MSE = mean_square_error(y, y_hat)

print("The Mean absolute error is %.3f" %(MAE))#%.3f表示將區域打印爲浮點小數點,精度至少爲3位數

print("The Mean squared error is %.3f" %(MSE))


我想請問一下print後面 MAE跟MSE前面多加一個%的用法是什麼意思?