tf.one_hot编码的用法以及one-hot自己编码
tf.one_hot编码的用法
最近想将之前用普通机器学习做的一个项目,用三层的全连接神经网络跑一遍,在做label时候,需要将(0,1)这两种label转为one-hot编码,因此探究了一下tf.one_hot的用法。
tf.one_hot(indices, depth, on_value=None, off_value=None, axis=None, dtype=None, name=No...
原创
2018-10-24 23:39:06 ·
1403 阅读 ·
0 评论