test/scout/misc/test_math.rb in scout-essentials-1.6.0 vs test/scout/misc/test_math.rb in scout-essentials-1.6.1

- old
+ new

@@ -3,7 +3,13 @@ class TestMiscMath < Test::Unit::TestCase def test_mean assert_equal 4, Misc.mean([6,2]) end + + def test_softmax + assert_equal 0.5, Misc.softmax([1,1]).first + assert Misc.softmax([1,2]).first < 0.5 + assert Misc.softmax([2,1]).first > 0.5 + end end