summaryrefslogtreecommitdiff
path: root/test/unit_tests/layer.test.js
blob: d7dcdb8096906358c6f2f8a9dd3ee9e59b10e7fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const BinaryConverter = require('../../src/binaryConverter');
const Layer = require('../../src/layer');
const math = require('mathjs');

describe('Test Layer module', () => {

    let testLayer = new Layer(2, 3, 'relu');
    let testConv = new BinaryConverter(2);
    
    testConv.randomInput()
    testLayer.forwardPropogation(testConv.inputActivation);
    
    testLayer = new Layer(2, 3, 'sigmoid');
    testLayer.forwardPropogation(testConv.inputActivation);
    
    testLayer = new Layer(2, 3, 'identity');
    testLayer.forwardPropogation(testConv.inputActivation);
        
    test.todo('Layer Tests');

});