diff options
author | TinWoodman92 <chrhodgden@gmail.com> | 2024-02-10 15:09:34 -0600 |
---|---|---|
committer | TinWoodman92 <chrhodgden@gmail.com> | 2024-02-10 15:09:34 -0600 |
commit | 4e7be0e7999e5e63a1b3453171d5aa35b690a953 (patch) | |
tree | d28c6340251464d6df8f39d7c1ec8f477c0999ba /test/unit_tests/layer.test.js | |
parent | 9d00e342a3dbf0f76d70f94d235938000dfd0376 (diff) |
added constructor and todos
Diffstat (limited to 'test/unit_tests/layer.test.js')
-rw-r--r-- | test/unit_tests/layer.test.js | 25 |
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'); }); |