public class MatLossFunction extends LossFunction
bias, X, Y
Constructor and Description |
---|
MatLossFunction(LossFunction f) |
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() |
void |
setBias(gov.sandia.cognition.math.matrix.Matrix bias) |
void |
setX(gov.sandia.cognition.math.matrix.Matrix X) |
void |
setY(gov.sandia.cognition.math.matrix.Matrix Y) |
test_backtrack
public MatLossFunction(LossFunction f)
public void setX(gov.sandia.cognition.math.matrix.Matrix X)
setX
in class LossFunction
public void setY(gov.sandia.cognition.math.matrix.Matrix Y)
setY
in class LossFunction
public void setBias(gov.sandia.cognition.math.matrix.Matrix bias)
setBias
in class LossFunction
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 isMatrixLoss()
isMatrixLoss
in class LossFunction