public abstract class LossFunction extends Object
Modifier and Type | Field and Description |
---|---|
protected gov.sandia.cognition.math.matrix.Matrix |
bias |
protected gov.sandia.cognition.math.matrix.Matrix |
X |
protected gov.sandia.cognition.math.matrix.Matrix |
Y |
Constructor and Description |
---|
LossFunction() |
Modifier and Type | Method and Description |
---|---|
abstract double |
eval(gov.sandia.cognition.math.matrix.Matrix W) |
abstract gov.sandia.cognition.math.matrix.Matrix |
gradient(gov.sandia.cognition.math.matrix.Matrix W) |
abstract 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) |
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) |
protected gov.sandia.cognition.math.matrix.Matrix X
protected gov.sandia.cognition.math.matrix.Matrix Y
protected gov.sandia.cognition.math.matrix.Matrix bias
public LossFunction()
public void setX(gov.sandia.cognition.math.matrix.Matrix X)
public void setY(gov.sandia.cognition.math.matrix.Matrix Y)
public abstract gov.sandia.cognition.math.matrix.Matrix gradient(gov.sandia.cognition.math.matrix.Matrix W)
public abstract double eval(gov.sandia.cognition.math.matrix.Matrix W)
public void setBias(gov.sandia.cognition.math.matrix.Matrix bias)
public abstract boolean isMatrixLoss()
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)