示例#1
0
 public void Invalidate()
 {
     for (int l = layers.Count - 1; l > 0; --l)
     {
         foreach (Neuron n in layers.ElementAt(l))
         {
             WorkingNeuron wn = n as WorkingNeuron;
             if (wn != null)
             {
                 wn.Invalidate();
             }
         }
     }
 }
示例#2
0
        public void Invalidate()
        {
            foreach (Neuron itOut in outputLayer)
            {
                ((WorkingNeuron)(itOut)).Invalidate();
            }

            foreach (Neuron itHid in hiddenLayer)
            {
                WorkingNeuron n = itHid as WorkingNeuron;
                if (n != null)
                {
                    n.Invalidate();
                }
            }
        }