W3cubDocs

/TensorFlow Python

tf.contrib.layers.one_hot_column(sparse_id_column)

tf.contrib.layers.one_hot_column(sparse_id_column)

See the guide: Layers (contrib) > Feature columns

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

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.

Defined in tensorflow/contrib/layers/python/layers/feature_column.py.

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/layers/one_hot_column