Class NormalizedPositiveGradientDescent

    • Constructor Detail

      • NormalizedPositiveGradientDescent

        public NormalizedPositiveGradientDescent()
    • Method Detail

      • postProcessWeights

        protected void postProcessWeights​(double[] theta)
        Renormalizes weights, such that their average is 1 and ensures they are all positive.
        Overrides:
        postProcessWeights in class GradientDescent
        Parameters:
        theta - weights to be normalized
      • normalize

        public static void normalize​(double[] weights)