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(); } } } }
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(); } } }