generate confusion matrix for the single label case

thanks @vsubhashini