Topic 2 Question 28
If a dataset contains rows with individual people and columns for year of birth, country, and income, how many of the columns are continuous and how many are categorical?
1 continuous and 2 categorical
3 categorical
3 continuous
2 continuous and 1 categorical
解説
The columns can be grouped into two typescategorical and continuous columns: A column is called categorical if its value can only be one of the categories in a finite set. For example, the native country of a person (U.S., India, Japan, etc.) or the education level (high school, college, etc.) are categorical columns. A column is called continuous if its value can be any numerical value in a continuous range. For example, the capital gain of a person (e.g. $14,084) is a continuous column. Year of birth and income are continuous columns. Country is a categorical column. You could use bucketization to turn year of birth and/or income into categorical features, but the raw columns are continuous. Reference: https://www.tensorflow.org/tutorials/wide#reading_the_census_data
ユーザの投票
コメント(8)
A. I think year can be categorical. Because it can only be int value, not 2020.1 year i.e
👍 24norwayping2020/06/29Answer: D Description: Year can be any value, income can be any value, so continuous, and country is categorical as values are finite
👍 12[Removed]2020/03/28This is not entirely correct , year of birth is a categorical value as well as country , only income is continuous. Eg. People born in 1984 is a category, people born in Australia is also a category Only income of individuals can vary. Hence, answer is A.
👍 9[Removed]2020/11/14
シャッフルモード