Create the modeler
The Estimator you'll be using is a LogisticRegression from the pyspark.ml.classification submodule.
This exercise is part of the course
Foundations of PySpark
Exercise instructions
- Import the
LogisticRegressionclass frompyspark.ml.classification. - Create a
LogisticRegressioncalledlrby callingLogisticRegression()with no arguments.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Import LogisticRegression
from ____ import ____
# Create a LogisticRegression Estimator
lr = ____