src/main/components/network/MoNeuralNetwork.java
// layerIndex at a specific weight index (neuronIndex)
layerIndex at a specific weight index (neuronIndex)
layerIndex at a specific weight index ( neuronIndex )
private float sumGradient(int neuronIndex,int layerIndex) {
        float gradientSum = 0;
        MoLayer currentLayer = this.layers[layerIndex];
        MoNeuron[] moNeurons = currentLayer.getNeurons();
        for (int i = 0; i < moNeurons.length; i++) {
            MoNeuron currentNeuron = moNeurons[i];
            gradientSum += currentNeuron.getWeights()[neuronIndex] * currentNeuron.getGradient();
        }
        return gradientSum;
    }
private float sumGradient ( int neuronIndex , int layerIndex ) { float gradientSum = 0 ; MoLayer currentLayer = this . layers [ layerIndex ] ; MoNeuron [ ] moNeurons = currentLayer . getNeurons ( ) ; for ( int i = 0 ; i < moNeurons . length ; i ++ ) { MoNeuron currentNeuron = moNeurons [ i ] ; gradientSum += currentNeuron . getWeights ( ) [ neuronIndex ] * currentNeuron . getGradient ( ) ; } return gradientSum ; }
layerIndex at a specific weight index (neuronIndex)
layerIndex at a specific weight index ( neuronIndex )