Certified Machine Learning Associate Practice Test

Certified Machine Learning Associate Practice Test practice questions, page 6 of 6, with answer review and explanations.

Question 26

A data scientist has developed a linear regression model using Spark ML and computed the predictions in a Spark DataFrame preds_df with the following schema: prediction DOUBLE actual DOUBLE Which of the following code blocks can be used to compute the root mean-squared-error of the model according to the data in preds_df and assign it to the rmse variable?

Question 27

A machine learning engineer wants to parallelize the training of group-specific models using the Pandas Function API. They have developed the train_model function, and they want to apply it to each group of DataFrame df. They have written the following incomplete code block: Which of the following pieces of code can be used to fill in the above blank to complete the task?

  1. applyInPandas
  2. mapInPandas
  3. predict
  4. train_model
  5. groupedApplyIn

Question 28

Which of the following statements describes a Spark ML estimator?

  1. An estimator is a hyperparameter grid that can be used to train a model
  2. An estimator chains multiple algorithms together to specify an ML workflow
  3. An estimator is a trained ML model which turns a DataFrame with features into a DataFrame with predictions
  4. An estimator is an algorithm which can be fit on a DataFrame to produce a Transformer
  5. An estimator is an evaluation tool to assess to the quality of a model