推薦系統實戰(6)——評估

一、打分系統-評分偏差率 def RMSE(records): return math.sqrt(sum([(rui-pui)*(rui-pui) for u,i,rui,pui in records])/float(len(records))) def MAE(records): return sum([abs(rui-pui) for u,i,rui,pui in record
相關文章
相關標籤/搜索