public class SquaredErrorLoss extends LossFunction
| Modifier and Type | Field and Description |
|---|---|
static SquaredErrorLoss |
INSTANCE |
| Constructor and Description |
|---|
SquaredErrorLoss() |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateError(mikera.vectorz.AVector output,
mikera.vectorz.AVector target) |
void |
calculateErrorDerivative(mikera.vectorz.AVector output,
mikera.vectorz.AVector target,
mikera.vectorz.AVector gradientOut)
Calculates a loss function for the given output and target
Overwrites the gradientOut vector with the error derivative.
|
calculateErrorDerivativepublic static SquaredErrorLoss INSTANCE
public void calculateErrorDerivative(mikera.vectorz.AVector output,
mikera.vectorz.AVector target,
mikera.vectorz.AVector gradientOut)
LossFunctioncalculateErrorDerivative in class LossFunctiongradientOut - output paremeter (to be overwritten)public double calculateError(mikera.vectorz.AVector output,
mikera.vectorz.AVector target)
calculateError in class LossFunctionCopyright © 2013. All Rights Reserved.