IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40318 for trunk


Ignore:
Timestamp:
Jan 21, 2018, 6:02:30 PM (8 years ago)
Author:
eugene
Message:

fix matrix numbering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/nnet_train.c

    r40317 r40318  
    170170      // delta = (delta DOT transpose(weights[L+1])) * sp;
    171171      for (int j = 0; j < nnet[0].Nnodes[L]; j++) {
    172         tmpdelta[L][j] = 0;
     172        tmpdelta = 0;
    173173        for (int i = 0; i < nnet[0].Nnodes[L+1]; i++) {
    174174          int k = j + i*nnet[0].Nnodes[L];
    175           tmpdelta[L][j] += nnet[0].weight[L][k] * nnet[0].sprime[L][i]; // XXX check on the index values
     175          tmpdelta += nnet[0].weight[L][k] * nnet[0].delta[L+1][i]; // XXX check on the index values
    176176        }
    177         tmpdelta[L][j] * nnet[0].sprime[L][j];
     177        nnet[0].delta[L][j] = tmpdelta * nnet[0].sprime[L][j];
    178178      }
    179179    }                                         
Note: See TracChangeset for help on using the changeset viewer.