AdaGrad implements Serializable { public AdaGrad( int rows, int cols, double gamma) { this.shape = new int[]{rows,cols}; createHistoricalGradient(); createAdjustedGradient(); this.masterStepSize = gamma; this.decayLr = false; } AdaGrad( int rows, int cols, double gamma);  AdaGrad(int[] shape);  AdaGrad( int rows, int cols); synchronized INDArray getLearningRates(INDArray gradient); double getMasterStepSize(); void setMasterStepSize(double masterStepSize); synchronized boolean isDecayLr(); synchronized void setDecayLr(boolean decayLr); public INDArray historicalGradient; public INDArray adjustedGradient; public double fudgeFactor; public INDArray gradient; public int[] shape; }
@Test public void testAdaGrad() { int rows = 10; int cols = 2; AdaGrad grad = new AdaGrad(rows,cols,0.1); INDArray W = Nd4j.zeros(rows, cols); }