module TensorStream::MathHelper
varoius utility functions for array processing
Public Instance Methods
sigmoid(val)
click to toggle source
Calculates value of y = 1.0 / ( 1.0 + exp( -x ) )
# File lib/tensor_stream/evaluator/operation_helpers/math_helper.rb, line 5 def sigmoid(val) 1 / (1 + Math.exp(-val)) end