Package org.encog.app.analyst.util

Examples of org.encog.app.analyst.util.CSVHeaders


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

    // read file
    final boolean headers = getScript().expectInputHeaders(sourceID);
    final CSVHeaders headerList = new CSVHeaders(sourceFile, headers,
        format);

    final int[] input = determineInputFields(headerList);
    final int[] ideal = determineIdealFields(headerList);
View Full Code Here


    final int outputLength = this.analyst.determineUniqueColumns();
    final ReadCSV csv = new ReadCSV(this.getInputFilename().toString(),
        this.isExpectInputHeaders(), this.getInputFormat());
    readHeaders(csv);

    this.analystHeaders = new CSVHeaders(this.getInputHeadings());

    while (csv.next() && !shouldStop()) {
      updateStatus(true);

      final LoadedRow row = new LoadedRow(csv, 1);
View Full Code Here

    this.setInputFormat(inputFormat);
    this.setExpectInputHeaders(expectInputHeaders);
    this.analyst = theAnalyst;
    this.setAnalyzed(true);

    this.analystHeaders = new CSVHeaders(inputFilename, expectInputHeaders,
        inputFormat);

    for (final AnalystField field : analyst.getScript().getNormalize()
        .getNormalizedFields()) {
      field.init();
View Full Code Here

   *
   * @param csv
   *            The CSV file to use.
   */
  private void generateFieldsFromHeaders(final ReadCSV csv) {
    final CSVHeaders h = new CSVHeaders(csv.getColumnNames());
    this.fields = new AnalyzedField[csv.getColumnCount()];
    for (int i = 0; i < this.fields.length; i++) {
      if (i >= csv.getColumnNames().size()) {
        throw new AnalystError(
            "CSV header count does not match column count");
      }
      this.fields[i] = new AnalyzedField(this.script, h.getHeader(i));
    }
  }
View Full Code Here

    performBasicCounts();
    this.fileColumns = this.getInputHeadings().length;
    this.outputColumns = this.analyst.determineOutputFieldCount();

    this.analystHeaders = new CSVHeaders(this.getInputHeadings());
    this.series = new TimeSeriesUtil(analyst,
        this.analystHeaders.getHeaders());

  }
View Full Code Here

   *
   * @param csv
   *            The CSV file to use.
   */
  private void generateFieldsFromHeaders(final ReadCSV csv) {
    final CSVHeaders h = new CSVHeaders(csv.getColumnNames());
    this.fields = new AnalyzedField[csv.getColumnCount()];
    for (int i = 0; i < this.fields.length; i++) {
      if (i >= csv.getColumnNames().size()) {
        throw new AnalystError(
            "CSV header count does not match column count");
      }
      this.fields[i] = new AnalyzedField(this.script, h.getHeader(i));
    }
  }
View Full Code Here

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

    // read file
    final boolean headers = getScript().expectInputHeaders(sourceID);
    final CSVHeaders headerList = new CSVHeaders(sourceFile, headers,
        format);

    final int[] input = determineInputFields(headerList);
    final int[] ideal = determineIdealFields(headerList);
View Full Code Here

    performBasicCounts();
    this.fileColumns = this.getInputHeadings().length;
    this.outputColumns = this.analyst.determineOutputFieldCount();

    this.analystHeaders = new CSVHeaders(this.getInputHeadings());
    this.series = new TimeSeriesUtil(analyst,false,
        this.analystHeaders.getHeaders());

  }
View Full Code Here

    final int outputLength = this.analyst.determineTotalColumns();
    final ReadCSV csv = new ReadCSV(this.getInputFilename().toString(),
        this.isExpectInputHeaders(), this.getFormat());
    readHeaders(csv);

    this.analystHeaders = new CSVHeaders(this.getInputHeadings());

    while (csv.next() && !shouldStop()) {
      updateStatus(true);
      final double[] inputArray = AnalystNormalizeCSV.extractFields(
          analyst, this.analystHeaders, csv, outputLength, true);
View Full Code Here

    this.setInputFormat(inputFormat);
    this.setExpectInputHeaders(expectInputHeaders);
    this.analyst = theAnalyst;
    this.setAnalyzed(true);

    this.analystHeaders = new CSVHeaders(inputFilename, expectInputHeaders,
        inputFormat);

    for (final AnalystField field : analyst.getScript().getNormalize()
        .getNormalizedFields()) {
      field.init();
View Full Code Here

TOP

Related Classes of org.encog.app.analyst.util.CSVHeaders

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.