diff options
author | sanine <sanine.not@pm.me> | 2023-06-25 00:06:43 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-06-25 00:06:43 -0500 |
commit | 1fa9872ad4683de387b2594ed25677cf3fd99309 (patch) | |
tree | 003cb57e325d6423387deb0de8a3fa3ac79ca56c /src/mind/topology.test.js | |
parent | 9f233aa540f01848fea62f6f5031142c6e96621a (diff) |
add protein
Diffstat (limited to 'src/mind/topology.test.js')
-rw-r--r-- | src/mind/topology.test.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mind/topology.test.js b/src/mind/topology.test.js index 9776132..52c196f 100644 --- a/src/mind/topology.test.js +++ b/src/mind/topology.test.js @@ -175,20 +175,20 @@ test('arbitrary hidden neurons', () => { .connect(1, 2, -1) .connect(2, 3, 2) - const [output, state] = n.compute([1], [0, 0]); - - expect(output).toEqual([ - Math.tanh( - 2*Math.tanh( - -1*Math.tanh(1) - ) - ) - ]); - - expect(state).toEqual([ - Math.tanh(1), - Math.tanh( -Math.tanh(1) ), - ]); + const [output, state] = n.compute([1], [0, 0]); + + expect(output).toEqual([ + Math.tanh( + 2*Math.tanh( + -1*Math.tanh(1) + ) + ) + ]); + + expect(state).toEqual([ + Math.tanh(1), + Math.tanh( -Math.tanh(1) ), + ]); }); |