Error:
Code Cell 16: You have an incorrect value for ‘thal’ variable. We expected a value of ‘VocabularyListCategoricalColumn(key=‘thal’, vocabulary_list=(‘fixed’, ‘normal’, ‘reversible’), dtype=tf.string, default_value=-1, num_oov_buckets=0)’ and you have ‘VocabularyListCategoricalColumn(key=‘thal’, vocabulary_list=(‘fixed’, ‘normal’, ‘reversible’, ‘1’, ‘2’), dtype=tf.string, default_value=-1, num_oov_buckets=0)’.
My Code:
thal = feature_column.categorical_column_with_vocabulary_list(‘thal’,[‘fixed’, ‘normal’, ‘reversible’])
thal_one_hot = feature_column.indicator_column(thal)
demo(thal_one_hot)