How to plot ROC curve and precision-recall curve from BinaryClassificationMetrics
问题 I was trying to plot ROC curve and Precision-Recall curve in graph. The points are generated from the Spark Mllib BinaryClassificationMetrics. By following the following Spark https://spark.apache.org/docs/latest/mllib-evaluation-metrics.html [(1.0,1.0), (0.0,0.4444444444444444)] Precision [(1.0,1.0), (0.0,1.0)] Recall [(1.0,1.0), (0.0,0.6153846153846153)] - F1Measure [(0.0,1.0), (1.0,1.0), (1.0,0.4444444444444444)]- Precision-Recall curve [(0.0,0.0), (0.0,1.0), (1.0,1.0), (1.0,1.0)] - ROC