diff options
author | Christian Hodgden <chrhodgden@gmail.com> | 2024-02-09 17:35:13 +0000 |
---|---|---|
committer | Christian Hodgden <chrhodgden@gmail.com> | 2024-02-09 17:35:13 +0000 |
commit | 75778c23de167946b8f567379da78c965aea9d87 (patch) | |
tree | 617ea5e99ba24bade21465e28889c239730a4854 /test/unit_tests/activationFunctions.test.js | |
parent | 92a96a82b9029b00fbd4ccef1ff3970518db25bb (diff) |
replaces space indents with tab indents
Diffstat (limited to 'test/unit_tests/activationFunctions.test.js')
-rw-r--r-- | test/unit_tests/activationFunctions.test.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/unit_tests/activationFunctions.test.js b/test/unit_tests/activationFunctions.test.js index ed39405..4b68deb 100644 --- a/test/unit_tests/activationFunctions.test.js +++ b/test/unit_tests/activationFunctions.test.js @@ -3,21 +3,21 @@ const math = require('mathjs'); describe('Test Activation Function module', () => { - let result; - let testVector = [-2, -1, 0, 1, 2]; - testVector = math.matrix(testVector); - let testMatrix = math.matrix([testVector, testVector]); - - result = activationFunctionList['sigmoid'].gx(testVector); - result = activationFunctionList['sigmoid'].dg_dx(testVector); - - result = activationFunctionList['relu'].gx(testMatrix); - result = activationFunctionList['relu'].dg_dx(testMatrix); - - result = activationFunctionList['identity'].gx(testMatrix); - result = activationFunctionList['identity'].dg_dx(testMatrix); - - test.todo('Activation Function Tests'); + let result; + let testVector = [-2, -1, 0, 1, 2]; + testVector = math.matrix(testVector); + let testMatrix = math.matrix([testVector, testVector]); + + result = activationFunctionList['sigmoid'].gx(testVector); + result = activationFunctionList['sigmoid'].dg_dx(testVector); + + result = activationFunctionList['relu'].gx(testMatrix); + result = activationFunctionList['relu'].dg_dx(testMatrix); + + result = activationFunctionList['identity'].gx(testMatrix); + result = activationFunctionList['identity'].dg_dx(testMatrix); + + test.todo('Activation Function Tests'); }); |