protected override void CompletePreTrainingCore()
{
double sampleCount = (double)PreTrainingSamples;
// Divide each of the 2nd derivative sums by the number of samples used to make the estimation, then convert into step size.
BiasStepSize /= sampleCount;
WeightStepSize /= sampleCount;
System.Diagnostics.Debug.WriteLine("Weight Hkk = " + BiasStepSize + ", Bias Hkk = " + WeightStepSize + ".");
BiasStepSize = GlobalLearningRate / (GlobalMu + BiasStepSize);
WeightStepSize = GlobalLearningRate / (GlobalMu + WeightStepSize);
}