MulaiMulai sekarang secara gratis

Evaluate the classifier

A trained logistic regression model df_fitted is available. A dataframe df_testset is available containing test data for this model.

Latihan ini adalah bagian dari kursus

Introduction to Spark SQL in Python

Lihat Kursus

Petunjuk latihan

  • Score the trained model on the test data.
  • Print the Area Under Curve metric.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Score the model on test data
testSummary = ____.____(____)

# Print the AUC metric
print("\ntest AUC: %.3f" % testSummary.____)
Edit dan Jalankan Kode