Tensorflow One Hot Encoder?

后端 未结 15 1728
一生所求
一生所求 2020-12-04 13:46

Does tensorflow have something similar to scikit learn\'s one hot encoder for processing categorical data? Would using a placeholder of tf.string behave as categorical data

15条回答
  •  南笙
    南笙 (楼主)
    2020-12-04 14:48

    Current versions of tensorflow implement the following function for creating one-hot tensors:

    https://www.tensorflow.org/versions/master/api_docs/python/array_ops.html#one_hot

提交回复
热议问题