public class MatSquareLossFunction extends LossFunction
bias, X, Y
Constructor and Description |
---|
MatSquareLossFunction() |
Modifier and Type | Method and Description |
---|---|
double |
eval(gov.sandia.cognition.math.matrix.Matrix W) |
gov.sandia.cognition.math.matrix.Matrix |
gradient(gov.sandia.cognition.math.matrix.Matrix W) |
boolean |
isMatrixLoss() |
boolean |
test_backtrack(gov.sandia.cognition.math.matrix.Matrix W,
gov.sandia.cognition.math.matrix.Matrix grad,
gov.sandia.cognition.math.matrix.Matrix prox,
double eta) |
setBias, setX, setY
public MatSquareLossFunction()
public gov.sandia.cognition.math.matrix.Matrix gradient(gov.sandia.cognition.math.matrix.Matrix W)
gradient
in class LossFunction
public double eval(gov.sandia.cognition.math.matrix.Matrix W)
eval
in class LossFunction
public boolean test_backtrack(gov.sandia.cognition.math.matrix.Matrix W, gov.sandia.cognition.math.matrix.Matrix grad, gov.sandia.cognition.math.matrix.Matrix prox, double eta)
test_backtrack
in class LossFunction
public boolean isMatrixLoss()
isMatrixLoss
in class LossFunction