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;
            }
        }
Пример #2
0
        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);
            }
        }