public void SetNeuronLayerWeights(INeuronLayerNeuronWeights passedNeuronWeights) { IEnumerator <INeuronWeights> neuronWeightsEnumerator = passedNeuronWeights.Values; uint neuronIndex = 0; while (neuronWeightsEnumerator.MoveNext()) { INeuronWeights current = neuronWeightsEnumerator.Current; INeuron neuron = this._Neurons[(int)neuronIndex++]; neuron.Weights = current; } }
public void SetAllLayerWeights(INeuronLayersNeuronWeights passedWeights) { IEnumerator <INeuronLayerNeuronWeights> neuronLayerWeightsEnumerator = passedWeights.Values; uint neuronLayerIndex = 0; while (neuronLayerWeightsEnumerator.MoveNext()) { INeuronLayerNeuronWeights currentNeuronLayerNeuronWeights = neuronLayerWeightsEnumerator.Current; INeuronLayer neuronLayer = this._Values[(int)neuronLayerIndex++]; neuronLayer.SetNeuronLayerWeights(currentNeuronLayerNeuronWeights); } }