The input signal, typically a classification output
The reference signal, typically a one hot code representing a class label
The input signal, typically a classification output
Raise a node to a fixed power.
Raise a node to a fixed power. Cog has two pow() function signatures corresponding to both integer and non-integer powers. The integer case is detected here and special-cased (instead of having a separate PowN node for this).
If the power n
is anything other than a positive integer, make sure the inputs
are always positive or NaNs will result.
the input signal
the power to raise the input to
The reference signal, typically a one hot code representing a class label
The cross-entropy loss function applied to the softmax of the input relative to the reference signal. This loss function is commonly used for training a classification network.
The input signal, typically a classification output
The reference signal, typically a one hot code representing a class label