로짓
import tensorflow as tf
tf.nn.softmax([-1.0, 0.0, 1.0])
<tf.Tensor: shape=(3,), dtype=float32, numpy=array([0.09003057, 0.24472848, 0.66524094], dtype=float32)>
tf.exp([-1.0, 0.0, 1.0]) / tf.reduce_sum(tf.exp([-1.0, 0.0, 1.0]))
<tf.Tensor: shape=(3,), dtype=float32, numpy=array([0.09003058, 0.24472848, 0.66524094], dtype=float32)>
tf.nn.sigmoid(2.0)
<tf.Tensor: shape=(), dtype=float32, numpy=0.8807971>
tf.nn.softmax([0.0, 2.0])
<tf.Tensor: shape=(2,), dtype=float32, numpy=array([0.11920291, 0.880797 ], dtype=float32)>