Databricks Machine Learning Associate exam dumps

Databricks Machine Learning Associate practice question 556 of 656

Databricks Certified Machine Learning Associate. Associate level, Databricks. Free question with the correct answer and a full explanation.

Databricks Machine Learning Associate Question 556

Select 4

You are working on a machine learning pipeline in Databricks and need to preprocess your dataset by scaling features and then train a regression model. Which of the following correctly differentiates between an estimator and a transformer in this context?

  1. A

    An estimator requires a .fit() method to learn parameters from the data.

  2. B

    A transformer directly modifies the input data without learning new parameters.

  3. C

    Both estimators and transformers are used exclusively for training machine learning models.

  4. D

    Transformers generate a transformed dataset by applying a .transform() method.

  5. E

    An estimator can also act as a transformer if it includes a .transform() method after fitting.

Show answer and explanation

Correct answers: A, B, D, E

Explanation

Estimators and transformers play distinct yet complementary roles in a machine learning pipeline. Estimators are used to learn parameters from data through the .fit() method, while transformers apply these learned parameters to modify or preprocess data using the .transform() method. Some estimators, like scalers, can act as transformers after being fitted, enabling seamless integration into pipelines.

  • A. Correct.

    Correct: An estimator requires a .fit() method to learn parameters, such as a regression model learning weights or a scaler learning the mean and standard deviation of the data.

  • B. Correct.

    Correct: A transformer modifies data without learning new parameters. For example, after a scaler has been fitted, it uses those parameters to transform new data.

  • C. Incorrect.

    Incorrect: Estimators and transformers are not exclusively used for training models. Estimators are used to learn parameters, while transformers are used to preprocess or modify data.

  • D. Correct.

    Correct: A transformer uses a .transform() method to apply transformations (e.g., scaling or encoding) to the dataset.

  • E. Correct.

    Correct: Some estimators, such as a fitted scaler, can act as transformers if they include a .transform() method to modify or preprocess data after fitting.

Timed practice exam

Take a Databricks Machine Learning Associate practice test under exam conditions

48 questions in 90 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam