我在Tensorflow中有代码,使用卷积神经网络来识别街道视图文本(SVT)数据中的字符。
由于标签类型是字符串,在丢失函数中应该使用什么而不是tf.nn.sparse_softmax_cross_entropy_with_logits()?
我不能使用tf.nn.sparse_softmax_cross_entropy_with_logits(),因为她的标签必须是int dtype??
发布于 2017-08-14 20:30:37
损失函数是正确的,您只需将分类变量转换为使用一个热向量编码的数字表示。请看一下这。
https://datascience.stackexchange.com/questions/22255
复制相似问题