public class HingeLossTerm extends HyperplaneTerm implements WeightedTerm
coeffs, constant, point, unitNormal
variables
Modifier and Type | Method and Description |
---|---|
float |
evaluate()
weight * max(coeffs^T * x - constant, 0)
|
float |
getWeight() |
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) |
void |
setWeight(float weight)
Set the weight of the term.
|
project
getVariables, updateLagrange
public void setWeight(float weight)
WeightedTerm
setWeight
in interface WeightedTerm
public float getWeight()
getWeight
in interface WeightedTerm
public void minimize(float stepSize, float[] consensusValues)
ADMMObjectiveTerm
minimize
in class ADMMObjectiveTerm
public float evaluate()
evaluate
in class HyperplaneTerm
Copyright © 2018 University of California, Santa Cruz. All rights reserved.