summaryrefslogtreecommitdiff
path: root/test/unit_tests/layer.test.js
blob: c570ceb1a652afef102108a50fed1615cf5b6bff (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');

});