예제 #1
0
 private void toolStripButtonValidate_Click(object sender, EventArgs e)
 {
     if (Def.Tree.ModelType == Tree.ModelTypeEnum.Classification) {
         //FrmPredict frp = new FrmPredict();
         //frp.Show();
         if (Def.Multivariate) {
             TreeMvValidation tmv = new TreeMvValidation();
             FrmClsValidation fcv = new FrmClsValidation();
             fcv.Show();
         } else {
             Def.TreeValidation = new TreeValidation();
             FrmClsValidation fcv = new FrmClsValidation();
             fcv.Show();
         }
         return;
     } else {
         Def.TreeValidation = new TreeValidation();
         FrmVltValidation frv = new FrmVltValidation();
         frv.Show();
         return;
     }
 }
예제 #2
0
 private void validate(string reportFilename)
 {
     if (Def.Multivariate) {
         TreeMvValidation t = new TreeMvValidation();
         t.NodeFill(Def.Tree.Root);
     } else {
         TreeValidation t = new TreeValidation();
         t.NodeFill(Def.Tree.Root);
     }
     if (Def.Tree.ModelType == Tree.ModelTypeEnum.Classification) {
         TreeClsValReport r = new TreeClsValReport(reportFilename);
         r.Dump();
     }
 }