powered by
confusion(obs, pred) confusion2acc(ct)
confusion
obs<- rep(0:1, each =5); pre<- c(obs[3:10], obs[1:2]) confusion(obs, pre) confusion2acc( confusion(obs, pre))
Run the code above in your browser using DataLab