Certified Machine Learning Associate Practice Test
Certified Machine Learning Associate Practice Test practice questions, page 5 of 6, with answer review and explanations.
Question 21
A machine learning engineer is trying to scale a machine learning pipeline by distributing its feature engineering process. Which of the following feature engineering tasks will be the least efficient to distribute?
One-hot encoding categorical features
Target encoding categorical features
Imputing missing feature values with the mean
Imputing missing feature values with the true median
Creating binary indicator features for missing values
Question 22
Which of the following is a benefit of using vectorized pandas UDFs instead of standard PySpark UDFs?
The vectorized pandas UDFs allow for the use of type hints
The vectorized pandas UDFs process data in batches rather than one row at a time
The vectorized pandas UDFs allow for pandas API use inside of the function
The vectorized pandas UDFs work on distributed DataFrames
The vectorized pandas UDFs process data in memory rather than spilling to disk
Question 23
A data scientist wants to tune a set of hyperparameters for a machine learning model. They have wrapped a Spark ML model in the objective function objective_function and they have defined the search space search_space. As a result, they have the following code block: Which of the following changes do they need to make to the above code block in order to accomplish the task?
Change SparkTrials() to Trials()
Reduce num_evals to be less than 10
Change fmin() to fmax()
Remove the trials=trials argument
Remove the algo=tpe.suggest argument
Question 24
A machine learning engineer would like to develop a linear regression model with Spark ML to predict the price of a hotel room. They are using the Spark DataFrame train_df to train the model. The Spark DataFrame train_df has the following schema: The machine learning engineer shares the following code block: Which of the following changes does the machine learning engineer need to make to complete the task?
They need to call the transform method on train_df
They need to convert the features column to be a vector
They do not need to make any changes
They need to utilize a Pipeline to fit the model
They need to split the features column out into one column for each feature
Question 25
Which of the following tools can be used to distribute large-scale feature engineering without the use of a UDF or pandas Function API for machine learning pipelines?