// Precision by threshold按阈值精度 //二进制的计量的阈值精度方法(传入的是rdd) //这是逻辑回归的概率的阈值,大于它为正1,小于它为负0 val precision = metrics.precisionByThreshold
precision.foreach { case (t, p) =>println(s"Threshold: $t, Precision: $p") }
// Precision by threshold按阈值精度 //二进制的计量的阈值精度方法(传入的是rdd) //这是逻辑回归的概率的阈值,大于它为正1,小于它为负0 val precision = metrics.precisionByThreshold
precision.foreach { case (t, p) =>println(s"Threshold: $t, Precision: $p") }