Home
last modified time | relevance | path

Searched refs:sample_idx (Results 1 – 17 of 17) sorted by relevance

/external/opencv3/apps/traincascade/
Dold_ml_inner_functions.cpp560 cvPreprocessOrderedResponses( const CvMat* responses, const CvMat* sample_idx, int sample_all ) in cvPreprocessOrderedResponses() argument
589 if( r_type == CV_32FC1 && CV_IS_MAT_CONT(responses->type) && !sample_idx ) in cvPreprocessOrderedResponses()
595 if( sample_idx ) in cvPreprocessOrderedResponses()
597 if( !CV_IS_MAT(sample_idx) || CV_MAT_TYPE(sample_idx->type) != CV_32SC1 || in cvPreprocessOrderedResponses()
598 (sample_idx->rows != 1 && sample_idx->cols != 1) || !CV_IS_MAT_CONT(sample_idx->type) ) in cvPreprocessOrderedResponses()
600 if( sample_idx->rows + sample_idx->cols - 1 > sample_count ) in cvPreprocessOrderedResponses()
602 map = sample_idx->data.i; in cvPreprocessOrderedResponses()
603 sample_count = sample_idx->rows + sample_idx->cols - 1; in cvPreprocessOrderedResponses()
637 const CvMat* sample_idx, int sample_all, in cvPreprocessCategoricalResponses() argument
679 if( sample_idx ) in cvPreprocessCategoricalResponses()
[all …]
Dold_ml_data.cpp75 sample_idx = 0; in CvMLData()
96 sample_idx = 0; in free_train_test_idx()
656 if ( !sample_idx) in set_train_test_split()
659 sample_idx = (int*)cvAlloc( sample_count * sizeof(sample_idx[0]) ); in set_train_test_split()
661 sample_idx[i] = i; in set_train_test_split()
663 *train_sample_idx = cvMat( 1, train_sample_count, CV_32SC1, &sample_idx[0] ); in set_train_test_split()
667 *test_sample_idx = cvMat( 1, test_sample_count, CV_32SC1, &sample_idx[train_sample_count] ); in set_train_test_split()
710 if ( !sample_idx) in mix_train_and_test_idx()
721 CV_SWAP( sample_idx[a], sample_idx[b], t ); in mix_train_and_test_idx()
Dold_ml_precomp.hpp287 const CvMat* sample_idx,
319 const CvMat* sample_idx, int samples_all,
339 const CvMat* sample_idx, int sample_all );
342 const CvMat* sample_idx, int sample_all,
346 const CvMat* var_idx, const CvMat* sample_idx,
Dold_ml_boost.cpp1139 const int* sample_idx = 0; in update_weights() local
1159 sample_idx = data->get_sample_indices( data->data_root, sample_idx_buf ); in update_weights()
1245 fdata[sample_idx[i]*step] = orig_response->data.i[i] > 0 ? 2.f : -2.f; in update_weights()
1255 fdata[sample_idx[i]*step] = (float)orig_response->data.i[i]; in update_weights()
1385 fdata[sample_idx[i]*step] = (float)MIN(z, lb_z_max); in update_weights()
1390 fdata[sample_idx[i]*step] = (float)-MIN(z, lb_z_max); in update_weights()
1836 …const CvMat* sample_idx = (type == CV_TEST_ERROR) ? _data->get_test_sample_idx() : _data->get_trai… in calc_error() local
1838 int* sidx = sample_idx ? sample_idx->data.i : 0; in calc_error()
1842 int sample_count = sample_idx ? sample_idx->cols : 0; in calc_error()
Dold_ml.hpp1764 CvMat* sample_idx; member in CvGBTrees
2028 int* sample_idx; // data of train_sample_idx and test_sample_idx member in CvMLData
Dold_ml_tree.cpp3323 …const CvMat* sample_idx = (type == CV_TEST_ERROR) ? _data->get_test_sample_idx() : _data->get_trai… in calc_error() local
3325 int* sidx = sample_idx ? sample_idx->data.i : 0; in calc_error()
3329 int sample_count = sample_idx ? sample_idx->cols : 0; in calc_error()
/external/opencv/ml/src/
Dml_inner_functions.cpp630 cvPreprocessOrderedResponses( const CvMat* responses, const CvMat* sample_idx, int sample_all ) in cvPreprocessOrderedResponses() argument
659 if( r_type == CV_32FC1 && CV_IS_MAT_CONT(responses->type) && !sample_idx ) in cvPreprocessOrderedResponses()
665 if( sample_idx ) in cvPreprocessOrderedResponses()
667 if( !CV_IS_MAT(sample_idx) || CV_MAT_TYPE(sample_idx->type) != CV_32SC1 || in cvPreprocessOrderedResponses()
668 sample_idx->rows != 1 && sample_idx->cols != 1 || !CV_IS_MAT_CONT(sample_idx->type) ) in cvPreprocessOrderedResponses()
670 if( sample_idx->rows + sample_idx->cols - 1 > sample_count ) in cvPreprocessOrderedResponses()
672 map = sample_idx->data.i; in cvPreprocessOrderedResponses()
673 sample_count = sample_idx->rows + sample_idx->cols - 1; in cvPreprocessOrderedResponses()
707 const CvMat* sample_idx, int sample_all, in cvPreprocessCategoricalResponses() argument
749 if( sample_idx ) in cvPreprocessCategoricalResponses()
[all …]
D_ml.h291 const CvMat* sample_idx,
323 const CvMat* sample_idx, int samples_all,
343 const CvMat* sample_idx, int sample_all );
346 const CvMat* sample_idx, int sample_all,
350 const CvMat* var_idx, const CvMat* sample_idx,
Dmlem.cpp78 CvEM::CvEM( const CvMat* samples, const CvMat* sample_idx, in CvEM() argument
85 train(samples, sample_idx, params, labels); in CvEM()
308 CvMat* sample_idx = 0; in train() local
325 0, 0, 0, &sample_idx )); in train()
374 int idx = sample_idx ? sample_idx->data.i[i] : i; in train()
387 if( sample_idx != _sample_idx ) in train()
388 cvReleaseMat( &sample_idx ); in train()
Dmlann_mlp.cpp691 CvMat* sample_idx = 0; in prepare_to_train() local
732 CV_CALL( sample_idx = cvPreprocessIndexArray( _sample_idx, _inputs->rows )); in prepare_to_train()
733 sidx = sample_idx->data.i; in prepare_to_train()
734 count = sample_idx->cols + sample_idx->rows - 1; in prepare_to_train()
807 cvReleaseMat( &sample_idx ); in prepare_to_train()
Dmltree.cpp130 CvMat* sample_idx = 0; in CV_IMPLEMENT_QSORT_EX() local
213 CV_CALL( sample_idx = cvPreprocessIndexArray( _sample_idx, sample_all )); in CV_IMPLEMENT_QSORT_EX()
214 sidx = sample_idx->data.i; in CV_IMPLEMENT_QSORT_EX()
215 sample_count = sample_idx->rows + sample_idx->cols - 1; in CV_IMPLEMENT_QSORT_EX()
540 cvReleaseMat( &sample_idx ); in CV_IMPLEMENT_QSORT_EX()
Dmlsvm.cpp2434 const CvMat* sample_idx,
2649 cross_valid_params, (CvStatModelParams*)&svm_params, comp_idx, sample_idx ));
2679 CV_CALL(svm = cvTrainSVM( train_data, tflag, responses, model_params, comp_idx, sample_idx ));
Dmlcnn.cpp56 const CvMat* CV_DEFAULT(0), const CvMat* sample_idx CV_DEFAULT(0),
/external/opencv3/modules/ml/src/
Dgbt.cpp49 missing = sample_idx = 0;
108 cvReleaseMat( &sample_idx );
132 missing = sample_idx = 0;
268 sample_idx = cvCreateMat( 1, sample_idx_len, CV_32S );
270 sample_idx->data.i[i] = _sample_idx->data.i[i];
271 std::sort(sample_idx->data.i, sample_idx->data.i + sample_idx_len);
279 sample_idx = cvCreateMat( 1, active_samples_count, CV_32S );
283 sample_idx->data.i[active_samples_count++] = i;
291 sample_idx = cvCreateMat( 1, n, CV_32S );
293 sample_idx->data.i[i] = i;
[all …]
/external/opencv3/modules/ml/test/
Dtest_mltests2.cpp136 … Mat sample_idx = (type == CV_TEST_ERROR) ? _data->getTestSampleIdx() : _data->getTrainSampleIdx(); in ann_calc_error() local
137 int* sidx = !sample_idx.empty() ? sample_idx.ptr<int>() : 0; in ann_calc_error()
139 int sample_count = (int)sample_idx.total(); in ann_calc_error()
/external/opencv3/samples/cpp/
Dletter_recog.cpp100 Mat sample_idx = Mat::zeros( 1, data.rows, CV_8U ); in prepare_train_data() local
101 Mat train_samples = sample_idx.colRange(0, ntrain_samples); in prepare_train_data()
110 noArray(), sample_idx, noArray(), var_type); in prepare_train_data()
/external/opencv/ml/include/
Dml.h596 CvEM( const CvMat* samples, const CvMat* sample_idx=0,
601 virtual bool train( const CvMat* samples, const CvMat* sample_idx=0,
1429 const CvMat* sample_idx CV_DEFAULT(0),