I want to get probability per class, for my output, in tensorflow. Using softmax yields the following.
A : 0.7
B : 0.2
C : 0.1
But, what I want is
A probability : 0.8
B probability : 0.6
C probability : 0.7
代替使用softmax
,使用tf.nn.sigmoid
作为
tf.nn.sigmoid(<output-tensor>)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.