Role of Confusion matrix in machine learning