public List<Result> getResult(String type) throws Exception {
   switch (type) {
     case LEARN:
       return IO.readResultSimply(
           this.dataDir, this.learningIdFileName, this.learningResultFileName);
     case TEST:
     default:
       return IO.readResultSimply(this.dataDir, this.testIdFileName, this.testResultFileName);
   }
 }
 //	public void updateIdAndData(Map<String,Sample> samples,String fileType) throws Exception{
 //		switch(fileType){
 //		case TRAIN:
 //			IO.writeIDAndData(dataDir, this.trainIdFileName, this.trainDataFileName, samples);
 //			break;
 //		case LEARN:
 //			IO.writeIDAndData(dataDir, this.learningIdFileName, this.learningDataFileName, samples);
 //			break;
 //		case TEST:
 //			IO.writeIDAndData(dataDir, this.testIdFileName, this.testDataFileName, samples);
 //			break;
 //		default:
 //			break;
 //		}
 //	}
 public void updateIdAndData(List<Sample> samples, String fileType) throws Exception {
   switch (fileType) {
     case TRAIN:
       IO.writeIDAndData(dataDir, this.trainIdFileName, this.trainDataFileName, samples);
       break;
     case LEARN:
       IO.writeIDAndData(dataDir, this.learningIdFileName, this.learningDataFileName, samples);
       break;
     case TEST:
       IO.writeIDAndData(dataDir, this.testIdFileName, this.testDataFileName, samples);
       break;
     default:
       break;
   }
 }