Class LBFGS
- java.lang.Object
-
- org.deeplearning4j.optimize.solvers.BaseOptimizer
-
- org.deeplearning4j.optimize.solvers.LBFGS
-
- All Implemented Interfaces:
Serializable,ConvexOptimizer
public class LBFGS extends BaseOptimizer
LBFGS- Author:
- Adam Gibson
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.deeplearning4j.optimize.solvers.BaseOptimizer
accumulator, computationGraphUpdater, conf, GRADIENT_KEY, lineMaximizer, log, model, oldScore, PARAMS_KEY, score, SCORE_KEY, SEARCH_DIR, searchState, step, stepFunction, stepMax, trainingListeners, updater
-
-
Constructor Summary
Constructors Constructor Description LBFGS(NeuralNetConfiguration conf, StepFunction stepFunction, Collection<TrainingListener> trainingListeners, Model model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpostStep(INDArray gradient)Post step to update searchDirection with new gradient and parameter informationvoidpreProcessLine()Pre preProcess to setup initial searchDirection approximationvoidsetupSearchState(Pair<Gradient,Double> pair)Setup the initial search state-
Methods inherited from class org.deeplearning4j.optimize.solvers.BaseOptimizer
applyConstraints, batchSize, getComputationGraphUpdater, getComputationGraphUpdater, getConf, getDefaultStepFunctionForOptimizer, getEpochCount, getGradientsAccumulator, getIterationCount, getUpdater, getUpdater, gradientAndScore, incrementIterationCount, optimize, postFirstStep, score, setBatchSize, setGradientsAccumulator, setListeners, setUpdater, setUpdaterComputationGraph, updateGradientAccordingToParams
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.deeplearning4j.optimize.api.ConvexOptimizer
getStepFunction
-
-
-
-
Constructor Detail
-
LBFGS
public LBFGS(NeuralNetConfiguration conf, StepFunction stepFunction, Collection<TrainingListener> trainingListeners, Model model)
-
-
Method Detail
-
setupSearchState
public void setupSearchState(Pair<Gradient,Double> pair)
Description copied from class:BaseOptimizerSetup the initial search state- Specified by:
setupSearchStatein interfaceConvexOptimizer- Overrides:
setupSearchStatein classBaseOptimizer- Parameters:
pair- the gradient and score
-
preProcessLine
public void preProcessLine()
Description copied from class:BaseOptimizerPre preProcess to setup initial searchDirection approximation- Specified by:
preProcessLinein interfaceConvexOptimizer- Overrides:
preProcessLinein classBaseOptimizer
-
postStep
public void postStep(INDArray gradient)
Description copied from class:BaseOptimizerPost step to update searchDirection with new gradient and parameter information- Specified by:
postStepin interfaceConvexOptimizer- Overrides:
postStepin classBaseOptimizer
-
-