在深度学习编码的过程中,常常会遇见一些变量名叫做logits
,这个logits
到底指代了一个什么东西呢?查阅资料之后,我在Google的machine learning文档中找到了定义:
Logits
The vector of raw (non-normalized) predictions that a classification model generates, which is ordinarily then passed to a normalization function. If the model is solving a multi-class classification problem, logits typically become an input to the softmax function. The softmax function then generates a vector of (normalized) probabilities with one value for each possible class.
In addition, logits sometimes refer to the element-wise inverse of the sigmoid function. For more information, see tf.nn.sigmoid_cross_entropy_with_logits.
代码实例如下:
暂时没有实例。