org.encog.app.analyst.csv.segregate

## Class SegregateCSV

- java.lang.Object
- - org.encog.app.analyst.csv.basic.BasicFile
  - - org.encog.app.analyst.csv.segregate.SegregateCSV

- All Implemented Interfaces:
    QuantTask

      public class SegregateCSV
      extends BasicFile

  This class is used to segregate a CSV file into several sub-files. This can be used to create training and evaluation datasets.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static int` | `TOTAL_PCT` TOtal percents should add to this.

    - ### Fields inherited from class org.encog.app.analyst.csv.basic.BasicFile

      `REPORT_INTERVAL`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SegregateCSV()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `analyze(File inputFile, boolean headers, CSVFormat format)` Analyze the input file.
    `List<SegregateTargetPercent>` | `getTargets()`
    `void` | `process()` Process the input file and segregate into the output files.

    - ### Methods inherited from class org.encog.app.analyst.csv.basic.BasicFile

      `appendSeparator, getColumnCount, getFormat, getInputFilename, getInputHeadings, getPrecision, getRecordCount, getReport, getReportInterval, getScript, isAnalyzed, isExpectInputHeaders, isProduceOutputHeaders, performBasicCounts, prepareOutputFile, readHeaders, reportDone, reportDone, requestStop, resetStatus, setAnalyzed, setColumnCount, setExpectInputHeaders, setInputFilename, setInputFormat, setInputHeadings, setPrecision, setProduceOutputHeaders, setRecordCount, setReport, setReportInterval, setScript, shouldStop, toString, updateStatus, updateStatus, validateAnalyzed, writeRow`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### TOTAL_PCT

          public static final int TOTAL_PCT

      TOtal percents should add to this.
      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### SegregateCSV

          public SegregateCSV()

  - ### Method Detail

    - #### analyze

          public void analyze(File inputFile,
                     boolean headers,
                     CSVFormat format)

      Analyze the input file.
      Parameters:
        `inputFile` - The input file.
        `headers` - The headers.
        `format` - The format of the input file.

    - #### getTargets

          public List<SegregateTargetPercent> getTargets()

      Returns:
        The segregation targets.

    - #### process

          public void process()

      Process the input file and segregate into the output files.

Copyright © 2014. All Rights Reserved.