org.nd4j.linalg.solvers
Class VectorizedBackTrackLineSearch
- java.lang.Object
-
- org.nd4j.linalg.solvers.VectorizedBackTrackLineSearch
-
- All Implemented Interfaces:
- LineOptimizerMatrix
public class VectorizedBackTrackLineSearch extends java.lang.Object implements LineOptimizerMatrix
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.nd4j.linalg.solvers.api.LineOptimizerMatrix
LineOptimizerMatrix.ByGradient
-
-
Constructor Summary
Constructors Constructor and Description VectorizedBackTrackLineSearch(OptimizableByGradientValueMatrix optimizable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetStpmax()doubleoptimize(INDArray line, int lineSearchIteration, double initialStep)Returns the last step size used.voidsetAbsTolx(double tolx)Sets the tolerance of absolute diff in function value.voidsetRelTolx(double tolx)Sets the tolerance of relative diff in function value.voidsetStpmax(double stpmax)
-
-
-
Constructor Detail
-
VectorizedBackTrackLineSearch
public VectorizedBackTrackLineSearch(OptimizableByGradientValueMatrix optimizable)
-
-
Method Detail
-
setStpmax
public void setStpmax(double stpmax)
-
getStpmax
public double getStpmax()
-
setRelTolx
public void setRelTolx(double tolx)
Sets the tolerance of relative diff in function value. Line search converges if abs(delta x / x) < tolx for all coordinates.
-
setAbsTolx
public void setAbsTolx(double tolx)
Sets the tolerance of absolute diff in function value. Line search converges if abs(delta x) < tolx for all coordinates.
-
optimize
public double optimize(INDArray line, int lineSearchIteration, double initialStep) throws InvalidStepException
Description copied from interface:LineOptimizerMatrixReturns the last step size used.- Specified by:
optimizein interfaceLineOptimizerMatrix- Throws:
InvalidStepException
-
-
DMelt 3.0 © DataMelt by jWork.ORG