title: Using neural network with true and false outputs
body: <p>Since I'm new to neural network, there is a few questions I would like to ask to understand it more clearly.</p>
  
  <ul>
  <li>Q1: I would like to test for true/false results (pattern recognition), so does it mean that my output layer will have 2 neutrons?</li>
  <li>Q2: Continue to question 1, if in the training data, it only contains true data, so all the result in testing data will always be true?  (Since I'm having this problem, and the Encog library does not allow me to specify two output neutrons since I only have 1 type of output in the training data).</li>
  </ul>
  
  <p>My training data:</p>
  
  <pre><code>1,2,3,4 Pattern1
  6,7,8,9 Pattern1
  </code></pre>
  
  <p>My testing data:</p>
  
  <pre><code>4,3,2,1 Pattern2
  </code></pre>
  
  <p>This is the result I got from encog:
  Neural Network Results:</p>
  
  <pre><code>0.0,0.0, actual=-0.05972914453206861,ideal=1.0
  </code></pre>
  
  <p>Can someone please show me where was I wrong ?
  <br>Thank you very much.</p>