# How do you use a ROC curve to optimize a random forest classifier? [duplicate]

So the threshold is a parametric parameter of the curve. Where you can find the interval in which it is in by using the scores two points immediately adjacent to them. You can also look into an $F_1$ score to help you pick an optimal threshold.