Evaluate the classifier
A trained logistic regression model df_fitted is available. A dataframe df_testset is available containing test data for this model.
Questo esercizio fa parte del corso
Introduction to Spark SQL in Python
Istruzioni dell'esercizio
- Score the trained model on the test data.
- Print the Area Under Curve metric.
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
# Score the model on test data
testSummary = ____.____(____)
# Print the AUC metric
print("\ntest AUC: %.3f" % testSummary.____)