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 void
postStep(INDArray gradient)
Post step to update searchDirection with new gradient and parameter informationvoid
preProcessLine()
Pre preProcess to setup initial searchDirection approximationvoid
setupSearchState(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:BaseOptimizer
Setup the initial search state- Specified by:
setupSearchState
in interfaceConvexOptimizer
- Overrides:
setupSearchState
in classBaseOptimizer
- Parameters:
pair
- the gradient and score
-
preProcessLine
public void preProcessLine()
Description copied from class:BaseOptimizer
Pre preProcess to setup initial searchDirection approximation- Specified by:
preProcessLine
in interfaceConvexOptimizer
- Overrides:
preProcessLine
in classBaseOptimizer
-
postStep
public void postStep(INDArray gradient)
Description copied from class:BaseOptimizer
Post step to update searchDirection with new gradient and parameter information- Specified by:
postStep
in interfaceConvexOptimizer
- Overrides:
postStep
in classBaseOptimizer
-
-