Module: DNN::Activations::SigmoidFunction
- Included in:
- Sigmoid, SigmoidWithLoss
- Defined in:
- lib/dnn/core/activations.rb
Instance Method Summary collapse
Instance Method Details
#forward(x) ⇒ Object
8 9 10 |
# File 'lib/dnn/core/activations.rb', line 8 def forward(x) @out = 1.0 / (1 + NMath.exp(-x)) end |