Get startedGet started for free

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

View Course

Exercise instructions

  • Import the LogisticRegression class from pyspark.ml.classification.
  • Create a LogisticRegression called lr by calling LogisticRegression() 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 = ____
Edit and Run Code