Plotting the “precision vs. recall” curve will show you the performance you can reach just by changing the threshold level. Have a look at this tutorial:

  
      

      TensorFlow
  

  
    

Classification on imbalanced data  |  TensorFlow Core 4