/// <summary> /// Nudges the weights. /// </summary> public void NudgeWeight() { this.Weight = Gaussian.GetRandomGaussian(); }
/// <summary> /// Initializes the connection with a random weight between -1 and 1 /// </summary> /// <param name="anteriorNeuron">The neuron on the anterior side of the connection.</param> /// <param name="posteriorNeuron">The neuron on the posterior side of the connection.</param> public Connection(Neuron anteriorNeuron, Neuron posteriorNeuron) : this(Gaussian.GetRandomGaussian(), anteriorNeuron, posteriorNeuron) { }