public interface Optimizer extends Serializable
Modifier and Type | Method and Description |
---|---|
Vec |
optimize(double eps,
int iterationLimit,
Function f,
Function fd,
Vec vars,
List<Vec> inputs,
Vec outputs)
Performs optimization on the given inputs to find the minima of the function.
|
Vec |
optimize(double eps,
int iterationLimit,
Function f,
Function fd,
Vec vars,
List<Vec> inputs,
Vec outputs,
ExecutorService threadpool)
Performs optimization on the given inputs to find the minima of the function.
|
Vec optimize(double eps, int iterationLimit, Function f, Function fd, Vec vars, List<Vec> inputs, Vec outputs, ExecutorService threadpool)
eps
- the desired accuracy of the result.iterationLimit
- the maximum number of iteration steps to allow. This value must be positivef
- the function to optimize. This value can not be nullfd
- the derivative of the function to optimizevars
- contains the initial estimate of the minima. The length should be equal to the number of variables being solved for. This value may be altered. This value can not be null.inputs
- a list of input data point values to learn fromoutputs
- a vector containing the true values for each data point in inputsthreadpool
- a source of threads to perform computation withVec optimize(double eps, int iterationLimit, Function f, Function fd, Vec vars, List<Vec> inputs, Vec outputs)
eps
- the desired accuracy of the result.iterationLimit
- the maximum number of iteration steps to allow. This value must be positivef
- the function to optimize. This value can not be nullfd
- the derivative of the function to optimizevars
- contains the initial estimate of the minima. The length should be equal to the number of variables being solved for. This value may be altered. This value can not be null.inputs
- a list of input data point values to learn fromoutputs
- a vector containing the true values for each data point in inputsCopyright © 2017. All rights reserved.