From d8e17c036eecadb17c6521fac23a5d956b8fd415 Mon Sep 17 00:00:00 2001 From: Christian Hodgden Date: Fri, 9 Feb 2024 14:49:12 +0000 Subject: added module imports and describe() method to activationFunction testing --- src/activationFunctions.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3