public class SquaredLinearLossTerm extends SquaredHyperplaneTerm
coefficients, constant
groundRule, size, variables
Constructor and Description |
---|
SquaredLinearLossTerm(GroundRule groundRule,
Hyperplane<LocalVariable> hyperplane) |
Modifier and Type | Method and Description |
---|---|
float |
evaluate()
weight * (coeffs^T * x - constant)^2
|
float |
evaluate(float[] consensusValues)
Evaluate this potential using the given consensus values.
|
void |
minimize(float stepSize,
float[] consensusValues)
Updates x to the solution of
argmin f(x) + stepSize / 2 * \|x - z + y / stepSize \|_2^2 for the objective term f(x) |
minWeightedSquaredHyperplane
getGroundRule, getVariables, size, updateLagrange
public SquaredLinearLossTerm(GroundRule groundRule, Hyperplane<LocalVariable> hyperplane)
public void minimize(float stepSize, float[] consensusValues)
ADMMObjectiveTerm
minimize
in class ADMMObjectiveTerm
public float evaluate()
evaluate
in class SquaredHyperplaneTerm
public float evaluate(float[] consensusValues)
ADMMObjectiveTerm
evaluate
in class SquaredHyperplaneTerm
Copyright © 2020 University of California, Santa Cruz. All rights reserved.