src/core/layer/AbstractExecutionLayer.java
public void append(NeuralNetworkLayer otherNeuralNetworkLayer, double tau) throws MatrixException {
        HashMap<Integer, Matrix> otherNeuralNetworkWeightsMap = otherNeuralNetworkLayer.getWeightsMap();
        for (Integer index : weightsMap.keySet()) {
            Matrix weight = weightsMap.get(index);
            Matrix otherWeight = otherNeuralNetworkWeightsMap.get(index);
            weight.multiply(1 - tau).add(otherWeight.multiply(tau), weight);
        }
    }
/**
     * Appends other neural network layer with equal weights to this layer by weighting factor tau.
     *
     * @param otherNeuralNetworkLayer other neural network layer.
     * @param tau tau which controls contribution of other layer.
     * @throws MatrixException throws exception if matrix operation fails.
     */
Appends other neural network layer with equal weights to this layer by weighting factor tau.

@param otherNeuralNetworkLayer other neural network layer.
@param tau tau which controls contribution of other layer.
@throws MatrixException throws exception if matrix operation fails.
Appends other neural network layer with equal weights to this layer by weighting factor tau . @param otherNeuralNetworkLayer other neural network layer . @param tau tau which controls contribution of other layer . @throws MatrixException throws exception if matrix operation fails .
public void append(NeuralNetworkLayer otherNeuralNetworkLayer, double tau) throws MatrixException {
        HashMap<Integer, Matrix> otherNeuralNetworkWeightsMap = otherNeuralNetworkLayer.getWeightsMap();
        for (Integer index : weightsMap.keySet()) {
            Matrix weight = weightsMap.get(index);
            Matrix otherWeight = otherNeuralNetworkWeightsMap.get(index);
            weight.multiply(1 - tau).add(otherWeight.multiply(tau), weight);
        }
    }
public void append ( NeuralNetworkLayer otherNeuralNetworkLayer , double tau ) throws MatrixException { HashMap < Integer , Matrix > otherNeuralNetworkWeightsMap = otherNeuralNetworkLayer . getWeightsMap ( ) ; for ( Integer index : weightsMap . keySet ( ) ) { Matrix weight = weightsMap . get ( index ) ; Matrix otherWeight = otherNeuralNetworkWeightsMap . get ( index ) ; weight . multiply ( 1 - tau ) . add ( otherWeight . multiply ( tau ) , weight ) ; } }
Appends other neural network layer with equal weights to this layer by weighting factor tau.
Appends other neural network layer with equal weights to this layer by weighting factor tau .