title: Adding a bias neuron to Encog network
body: <p>I am porting some C code involving an artificial neural network to Java. I have decided to use the <a href="http://www.heatonresearch.com/encog" rel="nofollow noreferrer">Encog framework</a>.</p>
  
  <p>I would like my network to have a bias neuron (which uses weighted synapses and always outputs 1.0) connected to hidden layers and the output layer; they are marked with green in <a href="https://imgur.com/eRcHx.png" rel="nofollow noreferrer">this graph</a>.</p>
  
  <p>How can I create such a network programmatically? Should every bias neuron have its own layer? I have tried to instantiate a <em>BasicLayer</em> for every bias neuron, but this does not seem to have any effect even though the layer is connected via a <em>WeightedSynapse</em>.</p>
  
  <p>Thank you,</p>
  
  <p>Martin Wiboe</p>