เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Create the modeler

The Estimator you'll be using is a LogisticRegression from the pyspark.ml.classification submodule.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Foundations of PySpark

ดูคอร์ส

คำแนะนำการฝึกหัด

  • Import the LogisticRegression class from pyspark.ml.classification.
  • Create a LogisticRegression called lr by calling LogisticRegression() with no arguments.

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# Import LogisticRegression
from ____ import ____

# Create a LogisticRegression Estimator
lr = ____
แก้ไขและรันโค้ด