Create the modeler
The Estimator you'll be using is a LogisticRegression from the pyspark.ml.classification submodule.
Bu egzersiz
Foundations of PySpark
kursunun bir parçasıdırEgzersiz talimatları
- Import the
LogisticRegressionclass frompyspark.ml.classification. - Create a
LogisticRegressioncalledlrby callingLogisticRegression()with no arguments.
Uygulamalı interaktif egzersiz
Bu örnek kodu tamamlayarak bu egzersizi bitirin.
# Import LogisticRegression
from ____ import ____
# Create a LogisticRegression Estimator
lr = ____