Package statechum.analysis.learning.experiments.ExperimentRunner

Examples of statechum.analysis.learning.experiments.ExperimentRunner.GeneratorConfiguration


    populateGraphs();
   
    multiExp = new ExperimentRunner();multiExp.graphsPerRunner=4;multiExp.setTimeBetweenHearbeats(heartbeatTestValue);
    multiExp.setTimeBetweenHearbeats(heartbeatTestValue);// make things run fast.
    multiExp.setLearnerStages(new int[]{30,45,90,99});
    multiExp.addLearnerEvaluator(new GeneratorConfiguration(Configuration.getDefaultConfiguration(),
        w_evaluator.class, "learnerTransitions"));
    multiExp.addLearnerEvaluator(new GeneratorConfiguration(Configuration.getDefaultConfiguration(),
        a_evaluator.class, "learnerAlphabet"));

    List<String> result = new LinkedList<String>();
    for(Entry<String,LearnerGraph> gr:graphs.entrySet())
      for(int stage:new int[]{30,45,90,99})
View Full Code Here


  }
 
  protected ExperimentRunner getSingleStageEvaluator()
  {
    ExperimentRunner experiment = new ExperimentRunner();experiment.graphsPerRunner=4;experiment.setTimeBetweenHearbeats(heartbeatTestValue );
    experiment.addLearnerEvaluator(new GeneratorConfiguration(Configuration.getDefaultConfiguration(),
        countEdge_evaluator.class,"testAllGraphsSingleStage"));
    return experiment;
  }
View Full Code Here

   */
  @Test
  public final void testInvalidLearnerEvaluatorName1()
  {
    final ExperimentRunner experiment = new ExperimentRunner();experiment.graphsPerRunner=4;experiment.setTimeBetweenHearbeats(heartbeatTestValue);
    experiment.addLearnerEvaluator(new GeneratorConfiguration(Configuration.getDefaultConfiguration(),
        w_evaluator.class, "invalid"+FS));
    checkForCorrectException(new whatToRun() { public @Override void run() throws NumberFormatException, IOException {
      experiment.runExperiment(new String[]{testGraphsDir.getAbsolutePath()});
    }},IllegalArgumentException.class,"invalid learner name");
  }
View Full Code Here

   */
  @Test
  public final void testInvalidLearnerEvaluatorName2()
  {
    final ExperimentRunner experiment = new ExperimentRunner();experiment.graphsPerRunner=4;experiment.setTimeBetweenHearbeats(heartbeatTestValue);
    experiment.addLearnerEvaluator(new GeneratorConfiguration(Configuration.getDefaultConfiguration(),
        w_evaluator.class, ""));
    checkForCorrectException(new whatToRun() { public @Override void run() throws NumberFormatException, IOException {
      experiment.runExperiment(new String[]{testGraphsDir.getAbsolutePath()});
    }},IllegalArgumentException.class,"invalid learner name");
  }
View Full Code Here

   */
  @Test
  public final void testInvalidLearnerEvaluatorName3()
  {
    final ExperimentRunner experiment = new ExperimentRunner();experiment.graphsPerRunner=4;experiment.setTimeBetweenHearbeats(heartbeatTestValue);
    experiment.addLearnerEvaluator(new GeneratorConfiguration(Configuration.getDefaultConfiguration(),
        w_evaluator.class, null));
    checkForCorrectException(new whatToRun() { public @Override void run() throws NumberFormatException, IOException {
      experiment.runExperiment(new String[]{testGraphsDir.getAbsolutePath()});
    }},IllegalArgumentException.class,"invalid learner name");
  }
View Full Code Here

  {
    ExperimentRunner result = new ExperimentRunner();result.graphsPerRunner=4;result.setTimeBetweenHearbeats(heartbeatTestValue);
    result.setLearnerStages(new int[]{30,45,90,99});
    Configuration cnf = Configuration.getDefaultConfiguration().copy();
    cnf.setLearnerOverwriteOutput(false);// make sure that existing files are preserved.
    result.addLearnerEvaluator(new GeneratorConfiguration(cnf,w_evaluator.class, "learnerTransitions"));
    result.addLearnerEvaluator(new GeneratorConfiguration(cnf,a_evaluator.class, "learnerAlphabet"));
    return result;
  }
View Full Code Here

    populateGraphs();
   
    multiExp = new ExperimentRunner();multiExp.graphsPerRunner=4;multiExp.setTimeBetweenHearbeats(heartbeatTestValue);
    multiExp.setTimeBetweenHearbeats(heartbeatTestValue);// make things run fast.
    multiExp.setLearnerStages(new int[]{30,45,90,99});
    multiExp.addLearnerEvaluator(new GeneratorConfiguration(Configuration.getDefaultConfiguration(),
        w_evaluator.class, "learnerTransitions"));
    multiExp.addLearnerEvaluator(new GeneratorConfiguration(Configuration.getDefaultConfiguration(),
        a_evaluator.class, "learnerAlphabet"));

    List<String> result = new LinkedList<String>();
    for(Entry<String,LearnerGraph> gr:graphs.entrySet())
      for(int stage:new int[]{30,45,90,99})
View Full Code Here

  }
 
  protected ExperimentRunner getSingleStageEvaluator()
  {
    ExperimentRunner experiment = new ExperimentRunner();experiment.graphsPerRunner=4;experiment.setTimeBetweenHearbeats(heartbeatTestValue );
    experiment.addLearnerEvaluator(new GeneratorConfiguration(Configuration.getDefaultConfiguration(),
        countEdge_evaluator.class,"testAllGraphsSingleStage"));
    return experiment;
  }
View Full Code Here

   */
  @Test
  public final void testInvalidLearnerEvaluatorName1()
  {
    final ExperimentRunner experiment = new ExperimentRunner();experiment.graphsPerRunner=4;experiment.setTimeBetweenHearbeats(heartbeatTestValue);
    experiment.addLearnerEvaluator(new GeneratorConfiguration(Configuration.getDefaultConfiguration(),
        w_evaluator.class, "invalid"+FS));
    checkForCorrectException(new whatToRun() { public @Override void run() throws NumberFormatException, IOException {
      experiment.runExperiment(new String[]{testGraphsDir.getAbsolutePath()});
    }},IllegalArgumentException.class,"invalid learner name");
  }
View Full Code Here

   */
  @Test
  public final void testInvalidLearnerEvaluatorName2()
  {
    final ExperimentRunner experiment = new ExperimentRunner();experiment.graphsPerRunner=4;experiment.setTimeBetweenHearbeats(heartbeatTestValue);
    experiment.addLearnerEvaluator(new GeneratorConfiguration(Configuration.getDefaultConfiguration(),
        w_evaluator.class, ""));
    checkForCorrectException(new whatToRun() { public @Override void run() throws NumberFormatException, IOException {
      experiment.runExperiment(new String[]{testGraphsDir.getAbsolutePath()});
    }},IllegalArgumentException.class,"invalid learner name");
  }
View Full Code Here

TOP

Related Classes of statechum.analysis.learning.experiments.ExperimentRunner.GeneratorConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.