You are on page 1of 1

if(ut['rating'][i]>3):

if(pred_ridge(cc[aux_clust-1],xu)>3.5):
TP +=1
if(ut['rating'][i]>3):
if(pred_ridge(cc[aux_clust-1],xu)<=3.5):
FN +=1
if(ut['rating'][i]<3):
if(pred_ridge(cc[aux_clust-1],xu)<=3.5):
TN +=1
if(ut['rating'][i]<3):
if(pred_ridge(cc[aux_clust-1],xu)>3.5):
FP +=1

You might also like