Practice Test 2 | Google Cloud Certified Professional Data Engineer | Dumps | Mock Test
You are preparing a dataset as a training set for a machine learning model. You have the following columns chosen as features for the model:
- Zip code
- Income
- Age
Which feature type each column is:
A. 3 continuous.
B. 2 categorical, 1 continuous.
C. 2 continuous, 1 categorical.
D. 3 categorical.
Answer: C.
In machine learning, features are two types: Categorical & Continuous.
Categorical features are features with finite values. For example Country, education level, and marital status.
Continuous features are features with numeric values in a continuous range. For example Income, latitude & longitude, and time.
For zip code, while it’s represented as numeric values, it’s considered categorical because it represents regions, means, it marks each region with a number.
Comments are closed, but trackbacks and pingbacks are open.