Vector previousLayerActivationOrInput, double alpha) {
Layer layer = layerSensitivity.getLayer();
Matrix activationTranspose = previousLayerActivationOrInput.transpose();
Matrix weightUpdateMatrix = layerSensitivity.getSensitivityMatrix()
.times(activationTranspose).times(alpha).times(-1.0);
layer.acceptNewWeightUpdate(weightUpdateMatrix.copy());
return weightUpdateMatrix;
}
public Vector calculateBiasUpdates(LayerSensitivity layerSensitivity,
double alpha, double momentum) {