public class SquaredHingeLossTerm extends SquaredHyperplaneTerm
coeffs, constant, weight
variables
Constructor and Description |
---|
SquaredHingeLossTerm(List<LocalVariable> variables,
List<Float> coeffs,
float constant,
float weight) |
Modifier and Type | Method and Description |
---|---|
float |
evaluate()
weight * [max(coeffs^T * x - constant, 0.0)]^2
|
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) |
getWeight, minWeightedSquaredHyperplane, setWeight
getVariables, updateLagrange
public SquaredHingeLossTerm(List<LocalVariable> variables, List<Float> coeffs, float constant, float weight)
public float evaluate()
evaluate
in class SquaredHyperplaneTerm
public void minimize(float stepSize, float[] consensusValues)
ADMMObjectiveTerm
minimize
in class ADMMObjectiveTerm
Copyright © 2018 University of California, Santa Cruz. All rights reserved.