Created
May 2, 2018 15:02
-
-
Save FavioVazquez/27fa7de28011d41b192d723a185a9b87 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from pyspark.ml.evaluation import MulticlassClassificationEvaluator | |
tested_df = p_model.transform(test_df) | |
evaluator = MulticlassClassificationEvaluator(metricName="accuracy") | |
print("Test set accuracy = " + str(evaluator.evaluate(tested_df.select("prediction", "label")))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment