Lines Matching refs:k_fold
412 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;
592 k = -k_fold;
604 *folds++ = -i * k_fold;