I am using Spark mlib's BinaryClassificationMetrics class to generate the metrics for the output of RandomForestClassificationModel. I have gone through the Spark docs and I am able to generate thresholds, precisionByThreshold, recallByThreshold, roc and pr.
I wanted to know if any particular threshold value is used while generating roc. This is because in ROC wikipedia it says that:
The ROC curve is created by plotting the true positive rate (TPR) against the false positive rate (FPR) at various threshold settings.
I was wondering if any optimal threshold value is used or not while generating ROC in Spark. If not why?