Home
last modified time | relevance | path

Searched refs:k_fold (Results 1 – 3 of 3) sorted by relevance

/external/opencv/ml/src/
Dmlestimate.cpp412 int k_fold = 10;
426 k_fold = ((CvCrossValidationParams*)estimateParams)->k_fold;
427 if (!k_fold)
443 crVal->folds_all = k_fold;
572 if (k_fold > 0)
574 if (k_fold > s_len)
579 folds = crVal->folds = (int*) cvAlloc ((k_fold + 1) * sizeof (int));
581 for (i = 1; i < k_fold; i++)
583 *folds++ = cvRound (i * s_len * 1. / k_fold);
588 crVal->max_fold_size = (s_len - 1) / k_fold + 1;
[all …]
Dmlsvm.cpp1591 const CvMat* _var_idx, const CvMat* _sample_idx, CvSVMParams _params, int k_fold, in train_auto() argument
1626 if( k_fold < 2 ) in train_auto()
1724 const int testset_size = sample_count/k_fold; in train_auto()
1726 const int last_testset_size = sample_count - testset_size*(k_fold-1); in train_auto()
1786 for( k = 0; k < k_fold; k++ ) in train_auto()
1797 if( k == k_fold - 1 ) in train_auto()
/external/opencv/ml/include/
Dml.h506 int k_fold = 10,
1462 int k_fold; \