Home | History | Annotate | Download | only in src

Lines Matching refs:fold

102         "or n>0 (tree is pruned using n-fold cross-validation)" );
2264 // * j-th cross-validation fold value and risk are calculated as above,
2266 // * j-th cross-validation fold error is calculated as the weighted number of
2365 // * j-th cross-validation fold value and risk are calculated as above,
2367 // * j-th cross-validation fold error is calculated
2643 // 1. build tree sequence for each cv fold, calculate error_{Tj,beta_k}.
2737 double CvDTree::update_tree_rnc( int T, int fold )
2747 int t = fold >= 0 ? node->cv_Tn[fold] : node->Tn;
2753 if( fold >= 0 )
2755 node->tree_risk = node->cv_node_risk[fold];
2756 node->tree_error = node->cv_node_error[fold];
2770 parent->alpha = ((fold >= 0 ? parent->cv_node_risk[fold] : parent->node_risk)
2788 int CvDTree::cut_tree( int T, int fold, double min_alpha )
2799 int t = fold >= 0 ? node->cv_Tn[fold] : node->Tn;
2804 if( fold >= 0 )
2805 node->cv_Tn[fold] = T;