iginally described in the <a href="http://nn.cs.utexas.edu/downloads/papers/stanley.ec02.pdf">NEAT</a>
 paper. The constructor of an empty network is as follows:</p>
<pre><code class="javascript">var myNetwork = new Network(inputSize, outputSize);
</code></pre>

<p>So for the training set I made above, the network can be constructed as follows:</p>
<pre><code class="javascript">var myNetwork = new Network(2, 1); // 2 inputs, 1 output
</code></pre>

<p>Now we have our network. We don't have to tinker around 