summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTinWoodman92 <chrhodgden@gmail.com>2024-02-10 15:09:34 -0600
committerTinWoodman92 <chrhodgden@gmail.com>2024-02-10 15:09:34 -0600
commit4e7be0e7999e5e63a1b3453171d5aa35b690a953 (patch)
treed28c6340251464d6df8f39d7c1ec8f477c0999ba /test
parent9d00e342a3dbf0f76d70f94d235938000dfd0376 (diff)
added constructor and todos
Diffstat (limited to 'test')
-rw-r--r--test/unit_tests/layer.test.js25
1 files changed, 16 insertions, 9 deletions
diff --git a/test/unit_tests/layer.test.js b/test/unit_tests/layer.test.js
index c570ceb..bb56d4e 100644
--- a/test/unit_tests/layer.test.js
+++ b/test/unit_tests/layer.test.js
@@ -4,19 +4,26 @@ const math = require('mathjs');
describe('Test Layer module', () => {
- let testLayer = new Layer(2, 3, 'relu');
- let testConv = new BinaryConverter(2);
+ let testLayer;
+ let testConv;
- testConv.randomInput()
- testLayer.forwardPropogation(testConv.inputActivation);
+ beforeEach(() => {
+ testConv = new BinaryConverter(2);
+ testConv.randomInput()
+ });
+
+ test.todo('Forward Propogation with RELU');
+ // testLayer = new Layer(2, 3, 'relu');
+ // testLayer.forwardPropogation(testConv.inputActivation);
- testLayer = new Layer(2, 3, 'sigmoid');
- testLayer.forwardPropogation(testConv.inputActivation);
+ test.todo('Forward Propogation with Sigmoid');
+ // testLayer = new Layer(2, 3, 'sigmoid');
+ // testLayer.forwardPropogation(testConv.inputActivation);
- testLayer = new Layer(2, 3, 'identity');
- testLayer.forwardPropogation(testConv.inputActivation);
+ test.todo('Forward Propogation with identity function');
+ // testLayer = new Layer(2, 3, 'identity');
+ // testLayer.forwardPropogation(testConv.inputActivation);
- test.todo('Layer Tests');
});