Sha256: a70e573ace06d8824eae5dfdb495d0b1872433236584507c7c3bba1675825b15

Contents?: true

Size: 216 Bytes

Versions: 24

Compression:

Stored size: 216 Bytes

Contents

module TensorStream
  # varoius utility functions for array processing
  module MathHelper
    # Calculates value of y = 1.0 / ( 1.0 + exp( -x ) )
    def sigmoid(val)
      1 / (1 + Math.exp(-val))
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
tensor_stream-0.4.1 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.4.0 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.3.0 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.2.0 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb