Câu 7: Databricks Certified Machine Learning Associate
A data scientist has defined a Pandas UDF function predict to parallelize the inference process for a single-node model: They have written the following incomplete code block to use predict to score each record of Spark DataFrame spark_df: Which of the following lines of code can be used to complete the code block to…
Nội dung câu hỏi
A data scientist has defined a Pandas UDF function predict to parallelize the inference process for a single-node model: They have written the following incomplete code block to use predict to score each record of Spark DataFrame spark_df: Which of the following lines of code can be used to complete the code block to successfully complete the task?
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.
- A. predict(*spark_df.columns) — đáp án hiện tại
- B. mapInPandas(predict)
- C. predict(Iterator(spark_df))
- D. mapInPandas(predict(spark_df.columns))
- E. predict(spark_df.columns)
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.