Пример #1
0
  private void test(
      String inputFileName, String jsonFormatFileExpected, boolean collapseTree, boolean pruneTree)
      throws Exception {
    CARTM5Extension cartM5 = new CARTM5Extension();

    IInstances instances = CommonTestUtils.createInstancesFromArffFile(ROOT, inputFileName);

    cartM5.train(instances);
    //		DecisionTree dt = (DecisionTree)dtBuilder.getDecisionTree();
    //		DescriptiveTree expectedTree = DecisionTreeUtils.getDescriptiveTreeFromJSON(ROOT,
    // jsonFormatFileExpected);
    //		System.out.println("********** EXPECTED  TREE:");
    //		expectedTree.emitTree();
    //		check(expectedTree, dt);
  }
Пример #2
0
 @After
 public void tearDown() {
   CommonTestUtils.clearAppTempFolder();
 }