summaryrefslogtreecommitdiff
path: root/test/unit_tests/nnetwork.test.js
blob: d09a0d7c913708becfa016b6249b3bd92612a690 (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
const BinaryConverter = require('../../src/binaryConverter');
const NNetwork = require('../../src/nnetwork');
const math = require('mathjs');

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

	// let testConv = new BinaryConverter(2);
	// let nodeCounts = [testConv._inputDigits, 3, testConv._outputDigits];
	// let afns = ['identity', 'relu', 'identity'];
	
	// let testNNetwork = new NNetwork(nodeCounts, afns, 0.1);
	
	// testConv.randomInput();
	// testNNetwork.forwardPropogation(testConv.inputActivation);
	// testNNetwork.backPropogation(testConv.inputActivation, testConv.outputActivation);
	
	// testConv.randomInput();
	// testNNetwork.forwardPropogation(testConv.inputActivation);
	// testNNetwork.backPropogation(testConv.inputActivation, testConv.outputActivation);
	
	// testNNetwork.gradientDescent();

	test.todo('NNetwork Tests');

});