>

<p>So an example of a training set would be (XOR):</p>
<pre><code class="javascript">var myTrainingSet = [
  { input: [0,0], output: [0] },
  { input: [0,1], output: [1] },
  { input: [1,0], output: [1] },
  { input: [1,1], output: [0] }
];
</code></pre>

<h3 id="the-network-architecture">The network architecture</h3>
<p>You can start off with <em>any</em> architecture. You can even use the evolution process
to optimize already trained networks. However, I advise you to start with an empty
network, as or