Class: CooCoo::ActivationFunctions::ShiftedSoftMax
- Defined in:
- lib/coo-coo/activation_functions.rb
Overview
Computes the Softmax function given a Vector but subtracts the maximum value from every element prior to Softmax to prevent overflows:
y_i = e ** (x_i - max(x)) / sum(e ** (x - max(x)))
Instance Method Summary collapse
Methods inherited from Identity
#initial_bias, #initial_weights, method_missing, #name, #prep_input, #prep_output_target, #to_s