Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Databricks Certified Machine Learning Associate · Databricks
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
- Correct answer : A — The encoder outputs a row of all zeros for `subscription_tier`, so the model scores the request using no information from that feature rather than raising an error. A . Correct — with `handle_unknown='ignore'` set at fit time, any category not seen during training is encoded as all zeros across that feature's one-hot columns at transform time, letting the pipeline continue scoring instead of raising an error, though the model then has no signal from that feature for this row. B . Incorrect — `handle_unknown='ignore'` specifically changes behavior at `.transform()` time; the default `handle_unknown='error'` is what raises a `ValueError` on unseen categories, so describing the parameter as fit-time-only reverses its actual purpose. C . Incorrect — a fitted `OneHotEncoder` has a fixed set of output columns determined during `.fit()`; it cannot expand the number of columns at transform time, since that would change the input shape the downstream model was trained to expect. D . Incorrect — `OneHotEncoder` has no built-in logic for substituting the most frequent category for unseen values; that behavior would require a separate imputation step, and `handle_unknown='ignore'` produces all zeros, not a substituted category.