org.nd4j.linalg.learning.SgdUpdater Java Examples
The following examples show how to use
org.nd4j.linalg.learning.SgdUpdater.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Sgd.java From nd4j with Apache License 2.0 | 5 votes |
@Override public GradientUpdater instantiate(INDArray viewArray, boolean initializeViewArray) { if (viewArray != null) { throw new IllegalStateException("View arrays are not supported/required for SGD updater"); } return new SgdUpdater(this); }
Example #2
Source File: Sgd.java From deeplearning4j with Apache License 2.0 | 5 votes |
@Override public GradientUpdater instantiate(INDArray viewArray, boolean initializeViewArray) { if (viewArray != null) { throw new IllegalStateException("View arrays are not supported/required for SGD updater"); } return new SgdUpdater(this); }
Example #3
Source File: SgdLearnerTestCase.java From jstarcraft-ai with Apache License 2.0 | 4 votes |
@Override protected GradientUpdater<?> getOldFunction(long[] shape) { Sgd configuration = new Sgd(); GradientUpdater<?> oldFunction = new SgdUpdater(configuration); return oldFunction; }
Example #4
Source File: Sgd.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public GradientUpdater instantiate(Map<String, INDArray> updaterState, boolean initializeStateArrays) { SgdUpdater u = new SgdUpdater(this); u.setState(updaterState, initializeStateArrays); return u; }