Generate confusion table dictionary