From 92a96a82b9029b00fbd4ccef1ff3970518db25bb Mon Sep 17 00:00:00 2001 From: Christian Hodgden Date: Fri, 9 Feb 2024 16:27:50 +0000 Subject: added module imports and describe() method to nnetwork testing --- src/nnetwork.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/nnetwork.js') diff --git a/src/nnetwork.js b/src/nnetwork.js index dd21491..97b4ea5 100644 --- a/src/nnetwork.js +++ b/src/nnetwork.js @@ -1,4 +1,5 @@ -console.log('Hello from nnetwork.js'); +const math = require('mathjs'); +const Layer = require('./layer'); class NNetwork { constructor(nodeCounts, activationFunctionNames, learningRate) { @@ -34,3 +35,5 @@ class NNetwork { this.layers.reverse() } }; + +module.exports = NNetwork; \ No newline at end of file -- cgit v1.2.3