Created
May 16, 2018 15:37
-
-
Save kaysush/b940a36329b2fb0d6edef19a405450d4 to your computer and use it in GitHub Desktop.
Accuracy Evaluation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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