public void acceptNewWeightUpdate(Matrix weightUpdate) { /* * penultimate weightupdates maintained only to implement VLBP later */ setPenultimateWeightUpdateMatrix(getLastWeightUpdateMatrix()); setLastWeightUpdateMatrix(weightUpdate); }
public void processError(Vector error) { Matrix weightUpdate = error.times(lastInput.transpose()); layer.acceptNewWeightUpdate(weightUpdate); Vector biasUpdate = layer.getBiasVector().plus(error); layer.acceptNewBiasUpdate(biasUpdate); }