Dear friends, Is there any way to know what is the “predicted label” for each “input label”?
[CODE]
…
Val model=SVMWithSGD.train(training,numIterations)
Model.clearThreshold()
Val scoreAndLabels = test.map{ point =>
Val score = model.predict(point.features)
(prediction, point.label)
}
scoreAndLabels.foreach( t=> println(“”+t._1+” [“+t._2”]”))
…
[END CODE]
Thanks,
