src/core/layer/regularization/WeightNoising.java
public void forwardProcess() throws MatrixException {
        resetLayerOutputs();
        getLayerOutputs().putAll(getPreviousLayerOutputs());

        if (isTraining()) {
            HashSet<Matrix> nextLayerNormalizedWeights = getNextLayer().getNormalizedWeights();
            for (Matrix weight : nextLayerNormalizedWeights) {
                weight.apply(value -> value + currentNoise * (1 - 2 * random.nextDouble()), true);
                if (currentNoise > minNoise) currentNoise *= noiseDecay;
            }
        }
    }
/**
     * Takes single forward processing step to process layer input(s).<br>
     *
     * @throws MatrixException throws exception if matrix operation fails.
     */
Takes single forward processing step to process layer input(s).

@throws MatrixException throws exception if matrix operation fails.
Takes single forward processing step to process layer input ( s ) . @throws MatrixException throws exception if matrix operation fails .
public void forwardProcess() throws MatrixException {
        resetLayerOutputs();
        getLayerOutputs().putAll(getPreviousLayerOutputs());
        if (isTraining()) {
            HashSet<Matrix> nextLayerNormalizedWeights = getNextLayer().getNormalizedWeights();
            for (Matrix weight : nextLayerNormalizedWeights) {
                weight.apply(value -> value + currentNoise * (1 - 2 * random.nextDouble()), true);
                if (currentNoise > minNoise) currentNoise *= noiseDecay;
            }
        }
    }
public void forwardProcess ( ) throws MatrixException { resetLayerOutputs ( ) ; getLayerOutputs ( ) . putAll ( getPreviousLayerOutputs ( ) ) ; if ( isTraining ( ) ) { HashSet < Matrix > nextLayerNormalizedWeights = getNextLayer ( ) . getNormalizedWeights ( ) ; for ( Matrix weight : nextLayerNormalizedWeights ) { weight . apply ( value -> value + currentNoise * ( 1 - 2 * random . nextDouble ( ) ) , true ) ; if ( currentNoise > minNoise ) currentNoise *= noiseDecay ; } } }
Takes single forward processing step to process layer input(s).<br>
Takes single forward processing step to process layer input ( s ) . <br >