title: Choosing the best threshold while computing the confusion matrix?
body: <p>Is there any way of choosing the best threshold while computing the confusion matrix so that number of false positives and false negatives get minimized (to get the best possible combination)?</p>
  
  <p>Till now I have tried changing values of threshold manually but that is too exhausting. </p>
  
  <p>Thanks in advance.</p>