public class IterativelyReweightedLeastSquares extends Object implements Optimizer
Constructor and Description |
---|
IterativelyReweightedLeastSquares() |
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.
|
public Vec optimize(double eps, int iterationLimit, Function f, Function fd, Vec vars, List<Vec> inputs, Vec outputs)
Optimizer
optimize
in interface Optimizer
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 inputspublic Vec optimize(double eps, int iterationLimit, Function f, Function fd, Vec vars, List<Vec> inputs, Vec outputs, ExecutorService threadpool)
Optimizer
optimize
in interface Optimizer
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 withCopyright © 2017. All rights reserved.