Certified Machine Learning Associate Practice Test
Certified Machine Learning Associate Practice Test practice questions, page 3 of 6, with answer review and explanations.
Question 11
What is the name of the method that transforms categorical features into a series of binary indicator feature variables?
Leave-one-out encoding
Target encoding
One-hot encoding
Categorical embeddings
String indexing
Question 12
A data scientist wants to parallelize the training of trees in a gradient boosted tree to speed up the training process. A colleague suggests that parallelizing a boosted tree algorithm can be difficult. Which of the following describes why?
Gradient boosting is not a linear algebra-based algorithm which is required for parallelization.
Gradient boosting requires access to all data at once which cannot happen during parallelization.
Gradient boosting calculates gradients in evaluation metrics using all cores which prevents parallelization.
Gradient boosting is an iterative algorithm that requires information from the previous iteration to perform the next step.
Gradient boosting uses decision trees in each iteration which cannot be parallelized.
Question 13
A data scientist wants to efficiently tune the hyperparameters of a scikit-learn model. They elect to use the Hyperopt library's fmin operation to facilitate this process. Unfortunately, the final model is not very accurate. The data scientist suspects that there is an issue with the objective_function being passed as an argument to fmin. They use the following code block to create the objective_function: Which of the following changes does the data scientist need to make to their objective_function in order to produce a more accurate model?
Add test set validation process
Add a random_state argument to the RandomForestRegressor operation
Remove the mean operation that is wrapping the cross_val_score operation
Replace the r2 return value with -r2
Replace the fmin operation with the fmax operation
Question 14
A data scientist is attempting to tune a logistic regression model logistic using scikit-learn. They want to specify a search space for two hyperparameters and let the tuning process randomly select values for each evaluation. They attempt to run the following code block, but it does not accomplish the desired task: Which of the following changes can the data scientist make to accomplish the task?
Replace the GridSearchCV operation with RandomizedSearchCV
Replace the GridSearchCV operation with cross_validate
Replace the GridSearchCV operation with ParameterGrid
Replace the random_state=0 argument with random_state=1
Replace the penalty= ['12', '11'] argument with penalty=uniform ('12', '11')
Question 15
Which of the following tools can be used to parallelize the hyperparameter tuning process for single-node machine learning models using a Spark cluster?