Finally time to train our logistic regression!

PySpark's logistic regression class handles both binomial and multinomial cases.

Logistic Regression

Training Summary has all sorts of useful attributes.

Logistic Regression Summary

We can use the MulticlassClassificationEvaluator Class to measure validation performance.

Multiclass Classification Evaluator