()
| 83 | }); |
| 84 | describe('xor', () => { |
| 85 | function xorNet() { |
| 86 | const net = new RNN({ |
| 87 | hiddenLayers: [20, 20], |
| 88 | inputSize: 3, |
| 89 | inputRange: 3, |
| 90 | outputSize: 3 |
| 91 | }); |
| 92 | net.initialize(); |
| 93 | return net; |
| 94 | } |
| 95 | |
| 96 | let xorNetValues = [ |
| 97 | [0, 0, 0], |