public class StochasticGradientDescent extends BaseOptimizer
accumulator, computationGraphUpdater, conf, GRADIENT_KEY, lineMaximizer, log, model, oldScore, PARAMS_KEY, score, SCORE_KEY, SEARCH_DIR, searchState, step, stepFunction, stepMax, terminationConditions, trainingListeners, updater
Constructor and Description |
---|
StochasticGradientDescent(NeuralNetConfiguration conf,
StepFunction stepFunction,
Collection<TrainingListener> trainingListeners,
Collection<TerminationCondition> terminationConditions,
Model model) |
StochasticGradientDescent(NeuralNetConfiguration conf,
StepFunction stepFunction,
Collection<TrainingListener> trainingListeners,
Model model) |
Modifier and Type | Method and Description |
---|---|
boolean |
optimize(LayerWorkspaceMgr workspaceMgr)
Optimize call.
|
void |
postStep(org.nd4j.linalg.api.ndarray.INDArray gradient)
Post step to update searchDirection with new gradient and parameter information
|
void |
preProcessLine()
Pre preProcess to setup initial searchDirection approximation
|
applyConstraints, batchSize, checkTerminalConditions, getComputationGraphUpdater, getConf, getDefaultStepFunctionForOptimizer, getEpochCount, getGradientsAccumulator, getIterationCount, getUpdater, gradientAndScore, incrementIterationCount, postFirstStep, score, setBatchSize, setGradientsAccumulator, setListeners, setUpdater, setUpdaterComputationGraph, setupSearchState, updateGradientAccordingToParams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStepFunction
public StochasticGradientDescent(NeuralNetConfiguration conf, StepFunction stepFunction, Collection<TrainingListener> trainingListeners, Model model)
public StochasticGradientDescent(NeuralNetConfiguration conf, StepFunction stepFunction, Collection<TrainingListener> trainingListeners, Collection<TerminationCondition> terminationConditions, Model model)
public boolean optimize(LayerWorkspaceMgr workspaceMgr)
BaseOptimizer
optimize
in interface ConvexOptimizer
optimize
in class BaseOptimizer
public void preProcessLine()
BaseOptimizer
preProcessLine
in interface ConvexOptimizer
preProcessLine
in class BaseOptimizer
public void postStep(org.nd4j.linalg.api.ndarray.INDArray gradient)
BaseOptimizer
postStep
in interface ConvexOptimizer
postStep
in class BaseOptimizer
Copyright © 2018. All rights reserved.