/** * Accumulation of reconstruction errors for a generic Neurons class * (This is only used for AutoEncoders) */ protected void setOutputLayerGradient(double ignored, int mb, int n) { assert (_minfo.get_params()._autoencoder && _index == _minfo.get_params()._hidden.length); final int rows = _a[mb].size(); for (int row = 0; row < rows; row++) _e[mb].set(row, autoEncoderGradient(row, mb)/n); }
/** * Accumulation of reconstruction errors for a generic Neurons class * (This is only used for AutoEncoders) */ protected void setOutputLayerGradient(double ignored, int mb, int n) { assert (_minfo.get_params()._autoencoder && _index == _minfo.get_params()._hidden.length); final int rows = _a[mb].size(); for (int row = 0; row < rows; row++) _e[mb].set(row, autoEncoderGradient(row, mb)/n); }