public class DefaultStepFunction extends java.lang.Object implements StepFunction
Constructor and Description |
---|
DefaultStepFunction() |
Modifier and Type | Method and Description |
---|---|
void |
step() |
void |
step(org.nd4j.linalg.api.ndarray.INDArray x,
org.nd4j.linalg.api.ndarray.INDArray line)
Step with no parameters
|
void |
step(org.nd4j.linalg.api.ndarray.INDArray parameters,
org.nd4j.linalg.api.ndarray.INDArray searchDirection,
double step)
Does x = x + stepSize * line
|
public void step(org.nd4j.linalg.api.ndarray.INDArray parameters, org.nd4j.linalg.api.ndarray.INDArray searchDirection, double step)
step
in interface StepFunction
step
- step size.parameters
- the current parameterssearchDirection
- the line to steppublic void step(org.nd4j.linalg.api.ndarray.INDArray x, org.nd4j.linalg.api.ndarray.INDArray line)
StepFunction
step
in interface StepFunction
public void step()
step
in interface StepFunction