We are ready to evaluate our model and see how well we can distinguish between Messi and Ronaldo.
Evaluating model performance
Getting ready
Since we will be doing some model evaluation, we will need to import the following library:
- MulticlassClassificationEvaluator
How to do it...
The following section walks through the following steps to evaluate model performance:
- Execute the following script to create a confusion matrix from the predictDF dataframe:
predictDF.crosstab('prediction', 'label').show().
- Calculate an accuracy score based on our 24...