Topic 2 Question 20
Which TensorFlow function can you use to configure a categorical column if you don't know all of the possible values for that column?
categorical_column_with_vocabulary_list
categorical_column_with_hash_bucket
categorical_column_with_unknown_values
sparse_column_with_keys
解説
If you know the set of all possible feature values of a column and there are only a few of them, you can use categorical_column_with_vocabulary_list. Each key in the list will get assigned an auto-incremental ID starting from 0. What if we don't know the set of possible values in advance? Not a problem. We can use categorical_column_with_hash_bucket instead. What will happen is that each possible value in the feature column occupation will be hashed to an integer ID as we encounter them in training. Reference: https://www.tensorflow.org/tutorials/wide
コメント(3)
Answer: B Description: vocabulary list is used when column values are known(incremental values are added as categorical columns starting from 0) and hash_bucket is used when you don’t know the values
👍 7[Removed]2020/03/28Correct: B
👍 3[Removed]2020/03/21correct B: updated link: https://www.tensorflow.org/tutorials/structured_data/feature_columns
👍 1daghayeghi2021/02/24
シャッフルモード