public static class SumSquaredErrorCostFunction.Cache extends AbstractCloneableSerializable
Modifier and Type | Field and Description |
---|---|
Matrix |
J
Jacobian
|
Vector |
Jte
Jacobian transpose times Error: J.transpose().times( error )
|
Matrix |
JtJ
Inner-product of the Jacobian matrix: J.transpose().times( J )
|
double |
parameterCost
Cost-function value of the parameter set
|
Modifier | Constructor and Description |
---|---|
protected |
Cache(Matrix J,
Matrix JtJ,
Vector Jte,
double parameterCost)
Creates a new instance of Cache
|
Modifier and Type | Method and Description |
---|---|
static SumSquaredErrorCostFunction.Cache |
compute(GradientDescendable objectToOptimize,
java.util.Collection<? extends InputOutputPair<? extends Vector,Vector>> data)
Computes often-used parameters of a sum-squared error term
|
clone
public final Matrix J
public final Matrix JtJ
public final Vector Jte
public final double parameterCost
protected Cache(Matrix J, Matrix JtJ, Vector Jte, double parameterCost)
J
- JacobianJtJ
- Inner-product of the Jacobian matrix: J.transpose().times( J )Jte
- Jacobian transpose times Error: J.transpose().times( error )parameterCost
- Cost-function value of the parameter setpublic static SumSquaredErrorCostFunction.Cache compute(GradientDescendable objectToOptimize, java.util.Collection<? extends InputOutputPair<? extends Vector,Vector>> data)
objectToOptimize
- GradientDescendable to compute the statistics ofdata
- Dataset to consider