Package org.encog.app.analyst.script.prop

Examples of org.encog.app.analyst.script.prop.ScriptProperties


  public AnalystReport(final EncogAnalyst theAnalyst) {
    this.analyst = theAnalyst;
  }
 
  private void analyzeFile() {
    ScriptProperties prop = this.analyst.getScript().getProperties();
   
    // get filenames, headers & format
    String sourceID = prop.getPropertyString(
        ScriptProperties.HEADER_DATASOURCE_RAW_FILE);

    File sourceFile = this.analyst.getScript().resolveFilename(sourceID);
    CSVFormat inputFormat = this.analyst.getScript().determineInputFormat(sourceID)
    boolean headers = this.analyst.getScript().expectInputHeaders(sourceID);
View Full Code Here


      }     
    }
  }

  private void readRawFile() {
    ScriptProperties prop = this.analyst.getScript().getProperties();
   
    // get filenames, headers & format
    String sourceID = prop.getPropertyString(
        ScriptProperties.HEADER_DATASOURCE_RAW_FILE);

    File sourceFile = this.analyst.getScript().resolveFilename(sourceID);

    CSVFormat inputFormat = this.analyst.getScript().determineInputFormat(sourceID);
View Full Code Here

    this.filenameBalance = FileUtil.addFilenameBase(rawFile, "_balance")
        .getName();
    this.filenameCluster = FileUtil.addFilenameBase(rawFile, "_cluster")
        .getName();

    final ScriptProperties p = this.script.getProperties();

    p.setFilename(AnalystWizard.FILE_RAW, this.filenameRaw);
    if (this.taskNormalize) {
      p.setFilename(AnalystWizard.FILE_NORMALIZE, this.filenameNorm);
    }

    if (this.taskRandomize) {
      p.setFilename(AnalystWizard.FILE_RANDOM, this.filenameRandom);
    }

    if (this.taskCluster) {
      p.setFilename(AnalystWizard.FILE_CLUSTER, this.filenameCluster);
    }

    if (this.taskSegregate) {
      p.setFilename(AnalystWizard.FILE_TRAIN, this.filenameTrain);
      p.setFilename(AnalystWizard.FILE_EVAL, this.filenameEval);
      p.setFilename(AnalystWizard.FILE_EVAL_NORM, this.filenameEvalNorm);
    }

    if (this.taskBalance) {
      p.setFilename(AnalystWizard.FILE_BALANCE, this.filenameBalance);
    }

   
    p.setFilename(AnalystWizard.FILE_TRAINSET, this.filenameTrainSet);
    p.setFilename(AnalystWizard.FILE_ML, this.filenameML);
    p.setFilename(AnalystWizard.FILE_OUTPUT, this.filenameOutput);
     
  }
View Full Code Here

  public AnalystReport(final EncogAnalyst theAnalyst) {
    this.analyst = theAnalyst;
  }
 
  private void analyzeFile() {
    ScriptProperties prop = this.analyst.getScript().getProperties();
   
    // get filenames, headers & format
    String sourceID = prop.getPropertyString(
        ScriptProperties.HEADER_DATASOURCE_RAW_FILE);

    File sourceFile = this.analyst.getScript().resolveFilename(sourceID);
    CSVFormat inputFormat = this.analyst.getScript().determineFormat()
    boolean headers = this.analyst.getScript().expectInputHeaders(sourceID);
View Full Code Here

        .getName();
    this.filenameCode = FileUtil.forceExtension(
        FileUtil.addFilenameBase(rawFile, "_code").getName(),
        this.codeTargetLanguage.getExtension());

    final ScriptProperties p = this.script.getProperties();

    p.setFilename(AnalystWizard.FILE_RAW, this.filenameRaw);

    if (this.preprocess) {
      p.setFilename(AnalystWizard.FILE_PRE, this.filenameProcess);
    }

    if (this.taskNormalize) {
      p.setFilename(AnalystWizard.FILE_NORMALIZE, this.filenameNorm);
    }

    if (this.taskRandomize) {
      p.setFilename(AnalystWizard.FILE_RANDOM, this.filenameRandom);
    }

    if (this.taskCluster) {
      p.setFilename(AnalystWizard.FILE_CLUSTER, this.filenameCluster);
    }

    if (this.taskSegregate) {
      p.setFilename(AnalystWizard.FILE_TRAIN, this.filenameTrain);
      p.setFilename(AnalystWizard.FILE_EVAL, this.filenameEval);
      p.setFilename(AnalystWizard.FILE_EVAL_NORM, this.filenameEvalNorm);
    }

    if (this.taskBalance) {
      p.setFilename(AnalystWizard.FILE_BALANCE, this.filenameBalance);
    }

    if (this.codeTargetLanguage != TargetLanguage.NoGeneration) {
      p.setFilename(AnalystWizard.FILE_CODE, this.filenameCode);
    }

    p.setFilename(AnalystWizard.FILE_TRAINSET, this.filenameTrainSet);
    p.setFilename(AnalystWizard.FILE_ML, this.filenameML);
    p.setFilename(AnalystWizard.FILE_OUTPUT, this.filenameOutput);

  }
View Full Code Here

  /**
   * Obtain the ML method.
   * @return The method.
   */
  public MLMethod obtainMethod() {
    final ScriptProperties prop = this.encogAnalyst.getScript().getProperties();
    final String resourceID = prop.getPropertyString(
        ScriptProperties.ML_CONFIG_MACHINE_LEARNING_FILE);
    final File resourceFile = this.encogAnalyst.getScript().resolveFilename(resourceID);

    final MLMethod method = (MLMethod) EncogDirectoryPersistence
        .loadObject(resourceFile);
View Full Code Here

  /**
   * Obtain the training set.
   * @return The training set.
   */
  private MLDataSet obtainTrainingSet() {
    final ScriptProperties prop = this.encogAnalyst.getScript().getProperties();
    final String trainingID = prop.getPropertyString(
        ScriptProperties.ML_CONFIG_TRAINING_FILE);

    final File trainingFile = this.encogAnalyst.getScript().resolveFilename(trainingID);

    MLDataSet trainingSet = EncogUtility.loadEGB2Memory(trainingFile);
View Full Code Here

TOP

Related Classes of org.encog.app.analyst.script.prop.ScriptProperties

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.