Skip to content

Instantly share code, notes, and snippets.

@kaysush
Created May 16, 2018 15:37
Show Gist options
  • Save kaysush/b940a36329b2fb0d6edef19a405450d4 to your computer and use it in GitHub Desktop.
Save kaysush/b940a36329b2fb0d6edef19a405450d4 to your computer and use it in GitHub Desktop.
Accuracy Evaluation
val evaluator = new BinaryClassificationEvaluator()
.setLabelCol(dependetVariable)
.setRawPredictionCol("rawPrediction")
.setMetricName("areaUnderROC")
val accuracy = evaluator.evaluate(results)
println(s"Accuracy of Model : ${accuracy}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment