Beispiel #1
0
 public void CalculateOutputs()
 {
     if (type != NeuronType.output_neuron)
     {
         for (int i = 0; i < outputs.Length; i++)
         {
             outputs[i] = NeuralUtils.CustomSigmoid(bias + data * weights[i], -0.5f, 2, 0.3f);
         }
     }
     else
     {
         outputs[0] = NeuralUtils.CustomSigmoid(bias + data, -0.5f, 2, 0.3f);
     }
 }