Hi all,
I came across a code syntax that I have never seen before, any help appreciated.
mean(test.purchase != predicted.purchase) #input
[1] 0.016 #output
test.purchase and predicted.purchase are factor columns with two levels - yes and no.
What is != doing here, and how is it giving a numeric output ?
Thanks,