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-1.0.0 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-1.0.0.pre.rc1 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.9.10 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.9.9 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.9.8 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.9.7 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.9.6 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.9.5 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.9.2 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.9.1 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.9.0 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.8.6 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.8.5 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.8.1 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.8.0 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.7.0 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.6.1 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.6.0 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.5.1 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb
tensor_stream-0.5.0 lib/tensor_stream/evaluator/operation_helpers/math_helper.rb