Home | History | Annotate | Download | only in src

Lines Matching refs:n2

183         int n2 = layer_sizes->data.i[i];
184 double val = 0, G = n2 > 2 ? 0.7*pow((double)n1,1./(n2-1)) : 1.;
188 for( j = 0; j < n2; j++ )
194 w[k*n2 + j] = val;
202 w[k*n2 + j] *= s;
203 w[n1*n2 + j] *= G*(-1+j*2./n2);
1017 int n1 = layer_sizes->data.i[i-1], n2 = layer_sizes->data.i[i];
1018 cvInitMatHeader( &_df, 1, n2, CV_64F, df[i] );
1020 cvInitMatHeader( &_w, n1+1, n2, CV_64F, weights[i] );
1021 cvInitMatHeader( &_dw, n1+1, n2, CV_64F, dw->data.db + (weights[i] - weights[0]) );
1129 int n1, n2, si, j, k;
1216 n1 = layer_sizes->data.i[i-1]; n2 = layer_sizes->data.i[i];
1217 cvInitMatHeader( &_df, dcount, n2, CV_64F, df[i] );
1219 cvInitMatHeader( &_dEdw, n1, n2, CV_64F, dEdw->data.db+(weights[i]-weights[0]) );
1225 double* dst = _dEdw.data.db + n1*n2;
1226 const double* src = grad1->data.db + k*n2;
1227 for( j = 0; j < n2; j++ )
1230 cvInitMatHeader( &_w, n1, n2, CV_64F, weights[i] );
1242 n1 = layer_sizes->data.i[i-1]; n2 = layer_sizes->data.i[i];
1245 double* wk = weights[i]+k*n2;
1251 for( j = 0; j < n2; j++ )