org.encog.app.analyst.csv.normalize
REPORT_INTERVAL
Constructor and Description |
---|
AnalystNormalizeCSV() |
Modifier and Type | Method and Description |
---|---|
void |
analyze(File inputFilename,
boolean expectInputHeaders,
CSVFormat inputFormat,
EncogAnalyst theAnalyst)
Analyze the file.
|
static double[] |
extractFields(EncogAnalyst analyst,
CSVHeaders headers,
ReadCSV csv,
int outputLength,
boolean skipOutput)
Extract fields from a file into a numeric array for machine learning.
|
void |
normalize(File file)
Normalize the input file.
|
void |
setSourceFile(File file,
boolean headers,
CSVFormat format)
Set the source file.
|
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
public static final double[] extractFields(EncogAnalyst analyst, CSVHeaders headers, ReadCSV csv, int outputLength, boolean skipOutput)
analyst
- The analyst to use.headers
- The headers for the input data.csv
- The CSV that holds the input data.outputLength
- The length of the returned array.skipOutput
- True if the output should be skipped.public void analyze(File inputFilename, boolean expectInputHeaders, CSVFormat inputFormat, EncogAnalyst theAnalyst)
inputFilename
- The input file.expectInputHeaders
- True, if input headers are present.inputFormat
- The format.theAnalyst
- The analyst to use.public void normalize(File file)
file
- The file to write to.public void setSourceFile(File file, boolean headers, CSVFormat format)
file
- The file to use.headers
- True, if headers are to be expected.format
- The format of the CSV file.Copyright © 2014. All Rights Reserved.