Home | History | Annotate | Download | only in src

Lines Matching refs:weights

97     weights = 0;
110 weights = 0;
127 cvFree( &weights );
185 double* w = weights[i];
187 // initialize weights using Nguyen-Widrow algorithm
254 CV_CALL( weights = (double**)cvAlloc( (l_count+1)*sizeof(weights[0]) ));
256 weights[0] = wbuf->data.db;
257 weights[1] = weights[0] + l_dst[0]*2;
259 weights[i+1] = weights[i] + (l_dst[i-1] + 1)*l_dst[i];
260 weights[l_count+1] = weights[l_count] + l_dst[l_count-1]*2;
324 cvInitMatHeader( &_w, layer_in->cols, layer_out->cols, CV_64F, weights[j] );
345 const double* w = weights[0];
373 const double* w = weights[layer_sizes->cols];
570 double* scale = weights[0];
616 double* scale = weights[l_count];
617 double* inv_scale = weights[l_count+1];
751 "sample_weights must be 1d floating-point vector containing weights "
780 CV_ERROR( CV_StsOutOfRange, "some of sample weights are negative" );
785 // normalize weights
842 // ... and link weights
934 double* w = weights[0];
977 cvInitMatHeader( &_w, x1->cols, x2->cols, CV_64F, weights[i] );
989 w = weights[l_count+1];
1014 // backward pass, update weights
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]) );
1139 w = weights[0];
1167 cvInitMatHeader( &_w, x1->cols, x2->cols, CV_64F, weights[i] );
1176 w = weights[l_count+1];
1219 cvInitMatHeader( &_dEdw, n1, n2, CV_64F, dEdw->data.db+(weights[i]-weights[0]) );
1230 cvInitMatHeader( &_w, n1, n2, CV_64F, weights[i] );
1239 // now update weights
1245 double* wk = weights[i]+k*n2;
1246 size_t delta = wk - weights[0];
1375 cvWriteRawData( fs, weights[0], layer_sizes->data.i[0]*2, "d" );
1379 cvWriteRawData( fs, weights[l_count], layer_sizes->data.i[l_count-1]*2, "d" );
1383 cvWriteRawData( fs, weights[l_count+1], layer_sizes->data.i[l_count-1]*2, "d" );
1386 cvStartWriteStruct( fs, "weights", CV_NODE_SEQ );
1390 cvWriteRawData( fs, weights[i], (layer_sizes->data.i[i-1]+1)*layer_sizes->data.i[i], "d" );
1487 CV_CALL( cvReadRawData( fs, w, weights[0], "d" ));
1494 CV_CALL( cvReadRawData( fs, w, weights[l_count], "d" ));
1501 CV_CALL( cvReadRawData( fs, w, weights[l_count+1], "d" ));
1503 w = cvGetFileNodeByName( fs, node, "weights" );
1506 CV_ERROR( CV_StsParseError, "weights tag is not found or is invalid" );
1513 CV_CALL( cvReadRawData( fs, w, weights[i], "d" ));