Package com.martiansoftware.jsap

Examples of com.martiansoftware.jsap.JSAPResult.userSpecified()


    SymbolTransitionFrequencies symbolTransitions = new SymbolTransitionFrequencies(tree);
    symbolTransitions.processFile(inputFile);

    // Learning
    LearnModel learner = new LearnModel(tree, symbolTransitions, initialCandidate, strategy, weight1);
    if (jsapResult.userSpecified("max-iterations")) {
      learner.setMaxIterations(jsapResult.getInt("max-iterations"));
    }
    if (jsapResult.userSpecified("batch-size")) {
      learner.setBatchSize(jsapResult.getInt("batch-size"));
    }
View Full Code Here


    // Learning
    LearnModel learner = new LearnModel(tree, symbolTransitions, initialCandidate, strategy, weight1);
    if (jsapResult.userSpecified("max-iterations")) {
      learner.setMaxIterations(jsapResult.getInt("max-iterations"));
    }
    if (jsapResult.userSpecified("batch-size")) {
      learner.setBatchSize(jsapResult.getInt("batch-size"));
    }
    learner.learn();

    if (jsapResult.userSpecified("output-log")) {
View Full Code Here

    if (jsapResult.userSpecified("batch-size")) {
      learner.setBatchSize(jsapResult.getInt("batch-size"));
    }
    learner.learn();

    if (jsapResult.userSpecified("output-log")) {
      String fileName = jsapResult.getString("output-log");
      logger.info("Printing logfile to '" + fileName + "'");

      PrintWriter reportWriter = outputFile(fileName);
      learner.printReport(reportWriter);
View Full Code Here

      PrintWriter reportWriter = outputFile(fileName);
      learner.printReport(reportWriter);
      reportWriter.close();
    }

    if (jsapResult.userSpecified("output-model")) {
      int maxStates = jsapResult.getInt("winner-model-maxstates");
      if( jsapResult.userSpecified("winner-model-maxstates") ) {
        logger.info("Will pick the best model only among those having " + maxStates + " states or less" );
      }
     
View Full Code Here

      reportWriter.close();
    }

    if (jsapResult.userSpecified("output-model")) {
      int maxStates = jsapResult.getInt("winner-model-maxstates");
      if( jsapResult.userSpecified("winner-model-maxstates") ) {
        logger.info("Will pick the best model only among those having " + maxStates + " states or less" );
      }
     
      String fileName = jsapResult.getString("output-model");
      logger.info("Printing best model to '" + fileName + "'" );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.