Ejemplo n.º 1
0
 private String getExperimentID() {
   String[] evalFileNameArr =
       new String[] {
         policy.toString().toLowerCase(),
         feature.toString().toLowerCase(),
         Integer.toString(numTrueSeeds),
         Integer.toString(numPossibleSeeds),
         Integer.toString(numExpansions)
       };
   return Helper.merge(evalFileNameArr, ".");
 }
Ejemplo n.º 2
0
  public static void main(String args[]) {
    long startTime = System.currentTimeMillis();
    IterativeExperiment experiment = new IterativeExperiment();
    experiment.setUseGoogleSets(gv.isUseGoogleSets());
    experiment.setNumTrials(gv.getNumTrials());
    experiment.setNumExpansions(gv.getNumExpansions());
    experiment.setPolicy(gv.getPolicy(), gv.getNumTrueSeeds(), gv.getNumPossibleSeeds());

    //    WebManager.setFetchFromWeb(false);

    List<Feature> features = gv.getExpFeatures();
    if (features == null) features = Arrays.asList(Feature.values());

    for (Feature feature : features) {
      gv.setFeature(feature);
      experiment.setFeature(feature);
      experiment.run();
    }
    Helper.printElapsedTime(startTime);
  }