CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 35: Databricks Certified Machine Learning Associate

A data scientist wants to use Spark ML to one-hot encode the categorical features in their PySpark DataFrame features_df. A list of the names of the string columns is assigned to the input_columns variable. They have developed this code block to accomplish this task: The code block is returning an error. Which of the…

Nội dung câu hỏi

A data scientist wants to use Spark ML to one-hot encode the categorical features in their PySpark DataFrame features_df. A list of the names of the string columns is assigned to the input_columns variable. They have developed this code block to accomplish this task: The code block is returning an error. Which of the following adjustments does the data scientist need to make to accomplish this task?

Minh họa câu hỏi

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. They need to specify the method parameter to the OneHotEncoder.
  2. B. They need to remove the line with the fit operation.
  3. C. They need to use StringIndexer prior to one-hot encoding the features. — đáp án hiện tại
  4. D. They need to use VectorAssembler prior to one-hot encoding the features.

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề