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

Câu 34: Databricks Certified Machine Learning Associate

A data scientist wants to use Spark ML to impute missing values in their PySpark DataFrame features_df. They want to replace missing values in all numeric columns in features_df with each respective numeric column’s median value. They have developed the following code block to accomplish this task: The code block is n…

Nội dung câu hỏi

A data scientist wants to use Spark ML to impute missing values in their PySpark DataFrame features_df. They want to replace missing values in all numeric columns in features_df with each respective numeric column’s median value. They have developed the following code block to accomplish this task: The code block is not accomplishing the task. Which reasons describes why the code block is not accomplishing the imputation 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. It does not impute both the training and test data sets.
  2. B. The inputCols and outputCols need to be exactly the same.
  3. C. The fit method needs to be called instead of transform.
  4. D. It does not fit the imputer on the data to create an ImputerModel. — đáp án hiện tại

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ề