concept trade - off in category deep learning

This is an excerpt from Manning's book Deep Learning with JavaScript: Neural networks in TensorFlow.js.
The trade-off between the need to catch all positive examples and the need to minimize false positives (false alarms) is common in binary-classification tasks. The ROC curve, along with the associated AUC metric, is a technique that helps us quantify and visualize this relation.
Based on this discussion of the shape of the ROC curve and its implications, we can see that it is possible to quantify how good an ROC curve is by looking at the area under it—that is, how much of the space in the unit square is enclosed by the ROC curve and the x-axis. This is called the area under the curve (AUC) and is computed by the code in listing 3.7 as well. This metric is better than precision, recall, and accuracy in the sense that it takes into account the trade-off between false positives and false negatives. The ROC for random guessing (the diagonal line) has an AUC of 0.5, while the γ-shaped ideal ROC has an AUC of 1.0. Our phishing-detection model reaches an AUC of 0.981 after training.