Spark.
BinaryClassificationMetrics(predictions) //val precision_value = metrics.precisionByThreshold() //val recall_value = metrics.recallByThreshold() //val auROC = metrics.areaUnderROC() //println(“Area under ROC = “ + auROC) val metrics = new MulticlassMetrics(predictions.map(x => (x._1,x._2))) val