QuestionQ6

VerifiedModel Deployment

A data science team is refactoring its machine-learning projects to distribute model inference. The team organizes projects by the modeling library used to identify which projects will require a UDF to distribute the inference process.

Which of the following modeling libraries will require a UDF to distribute model inference?

Choose two
Explanation

scikit-learn and spaCy inference is executed through their Python APIs rather than through Spark-native model transformers. Wrapping that inference code in a Spark UDF enables Spark to execute it over distributed DataFrame partitions. Spark MLlib and Spark ML are Spark-native scalable machine-learning APIs and apply fitted models through their own distributed RDD/DataFrame transformations.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!