blob: bb56d4ecdd660e4e9745d80b2f1e054d44b1ec1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
const BinaryConverter = require('../../src/binaryConverter');
const Layer = require('../../src/layer');
const math = require('mathjs');
describe('Test Layer module', () => {
let testLayer;
let testConv;
beforeEach(() => {
testConv = new BinaryConverter(2);
testConv.randomInput()
});
test.todo('Forward Propogation with RELU');
// testLayer = new Layer(2, 3, 'relu');
// testLayer.forwardPropogation(testConv.inputActivation);
test.todo('Forward Propogation with Sigmoid');
// testLayer = new Layer(2, 3, 'sigmoid');
// testLayer.forwardPropogation(testConv.inputActivation);
test.todo('Forward Propogation with identity function');
// testLayer = new Layer(2, 3, 'identity');
// testLayer.forwardPropogation(testConv.inputActivation);
});
|