Which of the following is not a valid way to pass parameter to a Spark MLlib model?
5 phương ánCó giải thích
Các phương án trả lời
Chọn một phương ánLời giảiChọn phương án để mở
Đáp án đúng: "Pass a pickle file when the model is declared". Spark MLlib nhận tham số theo cơ chế Param: đặt trực tiếp khi khởi tạo hoặc truyền một ParamMap (bảng ánh xạ tham số sang giá trị) vào phương thức fit, và ParamMap truyền vào fit sẽ ghi đè giá trị đã đặt; tệp pickle là dạng tuần tự hoá đối tượng Python, không phải cách khai báo tham số, nên đây là cách không hợp lệ. "Set the named parameters directly when the model is declared" hợp lệ, ví dụ LogisticRegression(maxIter=10). "Pass a ParamMap to the .fit() method of the model" hợp lệ vì fit nhận ParamMap tuỳ chọn. "Create a ParamMap, update it then pass it to a .fit()" hợp lệ vì ParamMap là từ điển có thể cập nhật trước khi dùng. "Pass a ParamMap to the .fit() method of a pipeline" hợp lệ vì Pipeline cũng là Estimator và ParamMap có thể chứa tham số của từng giai đoạn.
Cùng phần 5
In the script example-spark-submit.sh, what does the #!/bin/bash line indicate?Có lời giảiCâu hỏiWhen you worked on model deployment case study, which modification to the ALS algorithm had the largest effect on model performance?Có lời giảiCâu hỏiDocker containers run a private file system that is isolated from the host and other containers. What is the suggested way to access notebooks and scripts from within the container?Có lời giảiCâu hỏiCả 25 câu của chủ đề25 câu