nerdexam
Amazon

MLS-C01 · Question #379

A data scientist is conducting exploratory data analysis (EDA) on a dataset that contains information about product suppliers. The dataset records the country where each product supplier is located as

Sign in or unlock MLS-C01 to reveal the answer and full explanation for question #379. The question stem and answer options stay visible for context.

Modeling

Question

A data scientist is conducting exploratory data analysis (EDA) on a dataset that contains information about product suppliers. The dataset records the country where each product supplier is located as a two-letter text code. For example, the code for New Zealand is "NZ." The data scientist needs to transform the country codes for model training. The data scientist must choose the solution that will result in the smallest increase in dimensionality. The solution must not result in any information loss. Which solution will meet these requirements?

Options

  • AAdd a new column of data that includes the full country name.
  • BEncode the country codes into numeric variables by using similarity encoding.
  • CMap the country codes to continent names.
  • DEncode the country codes into numeric variables by using one-hot encoding.

Unlock MLS-C01 to see the answer

You've previewed enough free MLS-C01 questions. Unlock MLS-C01 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Feature Encoding#Categorical Data#Dimensionality Reduction#Data Preprocessing
Full MLS-C01 Practice