In your comment, what does FeatureColumn in tf.learn means ?
Yun jae Choi

Thanks, updated n_classes computation to include missing value that categorical processor adds.

FeatureColumn is an abstraction for pre-processing features. They allow to embed, normalize, make crosses and etc features before passing to standard models like DNNClassifier.

You can find a bit more details here —