org.encog.app.analyst.csv.balance
public class BalanceCSV extends BasicFile
REPORT_INTERVAL
Constructor and Description |
---|
BalanceCSV() |
Modifier and Type | Method and Description |
---|---|
void |
analyze(File inputFile,
boolean headers,
CSVFormat format)
Analyze the data.
|
String |
dumpCounts()
Return a string that lists the counts per class.
|
Map<String,Integer> |
getCounts() |
void |
process(File outputFile,
int targetField,
int countPer)
Process and balance the data.
|
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 void analyze(File inputFile, boolean headers, CSVFormat format)
inputFile
- The input file to process.headers
- True, if headers are present.format
- The format of the CSV file.public String dumpCounts()
public void process(File outputFile, int targetField, int countPer)
outputFile
- The output file to write data to.targetField
- The field that is being balanced, this field determines the
classes.countPer
- The desired count per class.Copyright © 2014. All Rights Reserved.