3
16 클래스 문제에 대해 의사 결정 트리를 사용하고 있습니다. 매개 변수를OpenCV 의사 결정 트리 매개 변수 문제
CvDTreeParams params = CvDTreeParams(50, // max depth
100,// min sample count
0, // regression accuracy: N/A here
true, // compute surrogate split, no missing data
16, // max number of categories (use sub-optimal algorithm for larger numbers)
5, // the number of cross-validation folds
false, // use 1SE rule => smaller tree
false, // throw away the pruned tree branches
priors // the array of priors
);
CvDTree* dtree = new CvDTree();
dtree->train(data, CV_ROW_SAMPLE, classes,
Mat(), Mat(), var_type, Mat(), params);
으로 설정했지만 결과 트리의 최대 깊이는 25입니다. 그것은 깊이를 증가시키지 않습니다. Matlab에서 동일한 데이터를 시도했는데 트리 깊이가 50입니다. OpenCV의 트리 깊이가 제한이 있습니까?