diff options
author | Christian Hodgden <chrhodgden@gmail.com> | 2024-02-09 14:49:12 +0000 |
---|---|---|
committer | Christian Hodgden <chrhodgden@gmail.com> | 2024-02-09 14:49:12 +0000 |
commit | d8e17c036eecadb17c6521fac23a5d956b8fd415 (patch) | |
tree | 1277e4753a78e7f96f2840e50ae3b91cd4068a52 /src | |
parent | 60e9f9e8a7df69aa94de0e9752a3faf3c0c62253 (diff) |
added module imports and describe() method to activationFunction testing
Diffstat (limited to 'src')
-rw-r--r-- | src/activationFunctions.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/activationFunctions.js b/src/activationFunctions.js index 6ccc046..a5dedde 100644 --- a/src/activationFunctions.js +++ b/src/activationFunctions.js @@ -1,4 +1,4 @@ -console.log('Hello from activationFunctions.js'); +const math = require('mathjs'); let sigmoidExpression = '1 / (1 + exp(-x))'; let dSigmoidExpression = math.derivative(sigmoidExpression, 'x'); @@ -51,4 +51,6 @@ activationFunctionList = { gx: matrixMethod(identity), dg_dx: matrixMethod(dIdentity_dx) } -};
\ No newline at end of file +}; + +module.exports = activationFunctionList;
\ No newline at end of file |