Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.contrib.layers.one_hot_column

View source on GitHub

Creates an _OneHotColumn for a one-hot or multi-hot repr in a DNN.

tf.contrib.layers.one_hot_column(sparse_id_column)

Args:

  • sparse_id_column: A _SparseColumn which is created by sparse_column_with_* or crossed_column functions. Note that combiner defined in sparse_id_column is ignored.

Returns:

An _OneHotColumn.