/** * Compare the performance of a set of systems to that of a baseline system * @param directory Contain files denoting the performance of the target systems to be compared * @param baseFile Performance file for the baseline system */ public void compare(String directory, final String baseFile) { directory = FileUtils.makePathStandard(directory); final List<String> targets = FileUtils.getAllFiles2(directory);//ONLY filenames are stored for (int i = 0; i < targets.size(); i++) { if (targets.get(i).compareTo(baseFile) == 0) { targets.remove(i); i--; } else { targets.set(i, directory + targets.get(i));//convert filename to full path } } compare(targets, directory + baseFile); }
/** * Compare the performance of a set of systems to that of a baseline system * @param directory Contain files denoting the performance of the target systems to be compared * @param baseFile Performance file for the baseline system */ public void compare(String directory, String baseFile) { directory = FileUtils.makePathStandard(directory); List<String> targets = FileUtils.getAllFiles2(directory);//ONLY filenames are stored for(int i=0;i<targets.size();i++) { if(targets.get(i).compareTo(baseFile) == 0) { targets.remove(i); i--; } else targets.set(i, directory+targets.get(i));//convert filename to full path } compare(targets, directory+baseFile); } /**
tvs = Float.parseFloat(args[++i]); else if(args[i].compareTo("-output")==0) outputDir = FileUtils.makePathStandard(args[++i]);
tts = Float.parseFloat(args[++i]); } else if (args[i].equalsIgnoreCase("-output")) { outputDir = FileUtils.makePathStandard(args[++i]); } else if (args[i].equalsIgnoreCase("-feature_stats")) { doFeatureStats = true;
ranker.save(FileUtils.makePathStandard(modelDir) + "f" + (i+1) + "." + modelFile); System.out.println("Fold-" + (i+1) + " model saved to: " + modelFile);
ranker.save(FileUtils.makePathStandard(modelDir) + "f" + (i + 1) + "." + modelFile); if (logger.isLoggable(Level.INFO)) { logger.info("Fold-" + (i + 1) + " model saved to: " + modelFile);