public class HingeLossTerm extends HyperplaneTerm
coefficients, constant, point, unitNormal
groundRule, size, variables
Constructor and Description |
---|
HingeLossTerm(GroundRule groundRule,
Hyperplane<LocalVariable> hyperplane) |
Modifier and Type | Method and Description |
---|---|
float |
evaluate()
weight * max(0.0, coefficients^T * x - constant)
|
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) |
project
getGroundRule, getVariables, size, updateLagrange
public HingeLossTerm(GroundRule groundRule, Hyperplane<LocalVariable> hyperplane)
public void minimize(float stepSize, float[] consensusValues)
ADMMObjectiveTerm
minimize
in class ADMMObjectiveTerm
public float evaluate()
evaluate
in class HyperplaneTerm
public float evaluate(float[] consensusValues)
ADMMObjectiveTerm
evaluate
in class HyperplaneTerm
Copyright © 2020 University of California, Santa Cruz. All rights reserved.