src/core/layer/OutputLayer.java
public void backward() throws NeuralNetworkException  {
        if (targets.isEmpty()) throw new NeuralNetworkException("No targets defined");
        if (targets.totalSize() != getLayerOutputs().totalSize()) throw new NeuralNetworkException("Target size: "+ targets.totalSize() + " is not matching with output size: " + getLayerOutputs().totalSize());
        super.backward();
    }
/**
     * Executes backward step of neural network.
     *
     * @throws NeuralNetworkException throws exception if targets are not set or output and target dimensions are not matching.
     */
Executes backward step of neural network.

@throws NeuralNetworkException throws exception if targets are not set or output and target dimensions are not matching.
Executes backward step of neural network . @throws NeuralNetworkException throws exception if targets are not set or output and target dimensions are not matching .
public void backward() throws NeuralNetworkException  {
        if (targets.isEmpty()) throw new NeuralNetworkException("No targets defined");
        if (targets.totalSize() != getLayerOutputs().totalSize()) throw new NeuralNetworkException("Target size: "+ targets.totalSize() + " is not matching with output size: " + getLayerOutputs().totalSize());
        super.backward();
    }
public void backward ( ) throws NeuralNetworkException { if ( targets . isEmpty ( ) ) throw new NeuralNetworkException ( "No targets defined" ) ; if ( targets . totalSize ( ) != getLayerOutputs ( ) . totalSize ( ) ) throw new NeuralNetworkException ( "Target size: " + targets . totalSize ( ) + " is not matching with output size: " + getLayerOutputs ( ) . totalSize ( ) ) ; super . backward ( ) ; }
Executes backward step of neural network.
Executes backward step of neural network .