public abstract class LossFunction extends Object
Modifier and Type | Field and Description |
---|---|
protected Matrix |
bias |
protected Matrix |
X |
protected Matrix |
Y |
Constructor and Description |
---|
LossFunction() |
Modifier and Type | Method and Description |
---|---|
abstract double |
eval(Matrix W) |
abstract Matrix |
gradient(Matrix W) |
abstract boolean |
isMatrixLoss() |
void |
setBias(Matrix bias) |
void |
setX(Matrix X) |
void |
setY(Matrix Y) |
public LossFunction()