	@Test
	public void buildWithSprint() {

//		String path = "d:\\trainset_extract_1.txt";
//		String path = "d:\\trainset_extract_10.txt";
		String path = "d:\\trainset_extract_10_l.txt";
//		String path = "d:\\trains14_id.txt";
//		String path = "d:\\attribute_100_r_10.txt";
//		String path = "d:\\attribute_1000_r_10.txt";
//		String path = "d:\\attribute_100_r_100.txt";
//		String path = "d:\\attribute_1000_r_100.txt";
//		String path = "d:\\attribute_4432_r_100.txt";
//		Data data = DataLoader.load(path);
		Data data = DataLoader.loadWithId(path);
		DataHandler.fill(data, 1.0);
		Builder builder = new DecisionTreeSprintBuilder();
		TreeNode treeNode = (TreeNode) builder.build(data);
		
//		TreeNodeHelper.print(treeNode, 0, null);
//		String p = "d:\\trainset_extract_1.txt";
		String p = "d:\\trainset_extract_1_l.txt";
//		String p = "d:\\trainset_extract_10.txt";
//		String p = "d:\\trains14_id.txt";
//		String p = "d:\\attribute_10_r_10.txt";
//		String p = "d:\\attribute_100_r_10.txt";
//		String p = "d:\\attribute_500_r_10.txt";
//		String p = "d:\\attribute_700_r_10.txt";
//		String p = "d:\\attribute_1000_r_10.txt";
//		String p = "d:\\attribute_2000_r_100.txt";
//		Data testData = DataLoader.load(p);
		Data testData = DataLoader.loadWithId(p);
		System.out.println("data attributes:　" + data.getAttributes().length);
		System.out.println("testdata attributes:　" + testData.getAttributes().length);
		DataHandler.fill(testData.getInstances(), data.getAttributes(), 1.0);
		Object[] results = (Object[]) treeNode.classifySprint(testData);
		ShowUtils.printToConsole(results);
		DataError dataError = new DataError(testData.getCategories(), results);
		dataError.report();
	}