Examples of CSVFormat


Examples of org.encog.util.csv.CSVFormat

    // mark generated
    getScript().markGenerated(targetID);

    // get formats
    final CSVFormat inputFormat = getScript()
        .determineInputFormat(sourceID);
    final CSVFormat outputFormat = getScript().determineOutputFormat();

    // prepare to normalize
    final AnalystNormalizeCSV norm = new AnalystNormalizeCSV();
    norm.setScript(getScript());
    getAnalyst().setCurrentQuantTask(norm);
View Full Code Here

Examples of org.encog.util.csv.CSVFormat

   * @return The input format.
   */
  public final CSVFormat determineInputFormat(final String sourceID) {
    final String rawID = getProperties().getPropertyString(
        ScriptProperties.HEADER_DATASOURCE_RAW_FILE);
    CSVFormat result;

    if (sourceID.equals(rawID)) {
      result = getProperties().getPropertyCSVFormat(
          ScriptProperties.HEADER_DATASOURCE_SOURCE_FORMAT);
    } else {
View Full Code Here

Examples of org.encog.util.csv.CSVFormat

      if (fileType == 0) {
        DialogCSV dialog2 = new DialogCSV(EncogWorkBench.getInstance()
            .getMainWindow());
        if (dialog2.process()) {
          boolean headers = dialog2.getHeaders().getValue();
          CSVFormat format;

          if (dialog2.getDecimalComma().getValue())
            format = CSVFormat.DECIMAL_COMMA;
          else
            format = CSVFormat.DECIMAL_POINT;
View Full Code Here

Examples of org.encog.util.csv.CSVFormat

      if (fileType == 0) {
        DialogCSV dialog2 = new DialogCSV(EncogWorkBench.getInstance()
            .getMainWindow());
        if (dialog2.process()) {
          boolean headers = dialog2.getHeaders().getValue();
          CSVFormat format;

          if (dialog2.getDecimalComma().getValue())
            format = CSVFormat.DECIMAL_COMMA;
          else
            format = CSVFormat.DECIMAL_POINT;
View Full Code Here

Examples of org.encog.util.csv.CSVFormat

    final File sourceFile = getScript().resolveFilename(sourceID);
    final File targetFile = getScript().resolveFilename(targetID);

    // get formats
    final CSVFormat inputFormat = getScript()
        .determineInputFormat(sourceID);
    final CSVFormat outputFormat = getScript().determineOutputFormat();

    // mark generated
    getScript().markGenerated(targetID);

    // prepare to normalize
View Full Code Here

Examples of org.encog.util.csv.CSVFormat

  /**
   * Perform the analysis.
   * @param target The Encog analyst object to analyze.
   */
  public final void process(final EncogAnalyst target) {
    final CSVFormat csvFormat = ConvertStringConst
        .convertToCSVFormat(this.format);
    ReadCSV csv = new ReadCSV(this.filename, this.headers, csvFormat);

    // pass one, calculate the min/max
    while (csv.next()) {
View Full Code Here

Examples of org.encog.util.csv.CSVFormat

    // mark generated
    getScript().markGenerated(targetID);

    // get formats
    final CSVFormat inputFormat = getScript()
        .determineInputFormat(sourceID);
    final CSVFormat outputFormat = getScript().determineOutputFormat();

    // prepare to normalize
    final BalanceCSV balance = new BalanceCSV();
    balance.setScript(getScript());
    getAnalyst().setCurrentQuantTask(balance);
View Full Code Here

Examples of org.encog.util.csv.CSVFormat

   * Perform the analysis.
   * @param target The Encog analyst object to analyze.
   */
  public void process(final EncogAnalyst target) {
    int count = 0;
    final CSVFormat csvFormat = ConvertStringConst
        .convertToCSVFormat(this.format);
    ReadCSV csv = new ReadCSV(this.filename, this.headers, csvFormat);
   
    // pass one, calculate the min/max
    while (csv.next()) {
View Full Code Here

Examples of org.encog.util.csv.CSVFormat

    // 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);
     
    // read the file
    this.rowCount = 0;
    this.missingCount = 0;
View Full Code Here

Examples of org.encog.util.csv.CSVFormat

    // get filenames
    final String sourceID = getProp().getPropertyString(
        ScriptProperties.GENERATE_CONFIG_SOURCE_FILE);
    final String targetID = getProp().getPropertyString(
        ScriptProperties.GENERATE_CONFIG_TARGET_FILE);
    final CSVFormat format = getAnalyst().getScript().determineFormat();

    EncogLogging.log(EncogLogging.LEVEL_DEBUG, "Beginning generate");
    EncogLogging.log(EncogLogging.LEVEL_DEBUG, "source file:" + sourceID);
    EncogLogging.log(EncogLogging.LEVEL_DEBUG, "target file:" + targetID);
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.