public class MatLossFunction extends LossFunction
bias, X, Y
Constructor and Description |
---|
MatLossFunction(LossFunction f) |
Modifier and Type | Method and Description |
---|---|
double |
eval(Matrix W) |
Matrix |
gradient(Matrix W) |
boolean |
isMatrixLoss() |
void |
setBias(Matrix bias) |
void |
setX(Matrix X) |
void |
setY(Matrix Y) |
public MatLossFunction(LossFunction f)
public void setX(Matrix X)
setX
in class LossFunction
public void setY(Matrix Y)
setY
in class LossFunction
public void setBias(Matrix bias)
setBias
in class LossFunction
public Matrix gradient(Matrix W)
gradient
in class LossFunction
public double eval(Matrix W)
eval
in class LossFunction
public boolean isMatrixLoss()
isMatrixLoss
in class LossFunction