code: @Override
      public void init(DifferentiableBatchFunction function) {
          gradSumSquares = new double[function.getNumDimensions()];
          Arrays.fill(gradSumSquares, prm.initialSumSquares);
      }
docs: Initializes all the parameters for optimization.