Class GradientDescent

    • Constructor Summary

      Constructors 
      Constructor Description
      GradientDescent()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double[] optimize​(double[] theta, CostFunction costFunction)  
      protected void postProcessWeights​(double[] theta)
      can be overwritten by sub-classes for normalization purposes
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GradientDescent

        public GradientDescent()
    • Method Detail

      • optimize

        public double[] optimize​(double[] theta,
                                 CostFunction costFunction)
      • postProcessWeights

        protected void postProcessWeights​(double[] theta)
        can be overwritten by sub-classes for normalization purposes
        Parameters:
        theta - weights to be normalized