The input signal, typically a classification output.
Protect against generating NaNs for large inputs (>100).
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
Protect against generating NaNs for large inputs (>100).
The softmax (multinomial logistic regression). Converts the input to a form that could be considered a discrete probability distribution- i.e. all positive values that sum to 1.
The input signal, typically a classification output.
Protect against generating NaNs for large inputs (>100).