Create the modeler
The Estimator you'll be using is a LogisticRegression from the pyspark.ml.classification submodule.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Foundations of PySpark
คำแนะนำการฝึกหัด
- Import the
LogisticRegressionclass frompyspark.ml.classification. - Create a
LogisticRegressioncalledlrby callingLogisticRegression()with no arguments.
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Import LogisticRegression
from ____ import ____
# Create a LogisticRegression Estimator
lr = ____