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 |
static int |
TOTAL_PCT
TOtal percents should add to this. |
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 |
TOTAL_PCT
public static final int TOTAL_PCT
- TOtal percents should add to this.
- See Also:
- Constant Field Values
SegregateCSV
public SegregateCSV()
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.