/// <summary>Updates the weights of the layer.</summary> /// <param name="rate">The learning rate to be used.</param> /// <param name="momentum">The momentum to be used.</param> public virtual void UpdateWeights(float rate, float momentum = 0.0F) { Backbone.UpdateConnectionMatrix(this.Weights, this.Gradients, this.Momentum, this.InputSize, this.OutputSize, rate, momentum); }