Wie normalisiere ich eine CSV-Datei mit Encog?

Ich muss eine CSV-Datei normalisieren.Ich folgte diesem Artikel von Jeff Heaton. Dies ist (ein Teil) meines Codes:

File sourceFile = new File("Book1.csv");
File targetFile = new File("Book1_norm.csv");
EncogAnalyst analyst = new EncogAnalyst();
AnalystWizard wizard = new AnalystWizard(analyst);
wizard.wizard(sourceFile, true, AnalystFileFormat.DECPNT_COMMA);
final AnalystNormalizeCSV norm = new AnalystNormalizeCSV();
norm.analyze(sourceFile, false, CSVFormat.ENGLISH, analyst);
norm.setProduceOutputHeaders(false);
norm.normalize(targetFile);

Der einzige Unterschied zwischen meinem Code und dem des Artikels ist diese Zeile:

norm.setOutputFormat(CSVFormat.ENGLISH);

Ich habe versucht, es zu verwenden, aber es scheint, dass diese Methode in Encog 3.1.0 nicht existiert. Der Fehler, den ich bekomme, ist dieser (es sieht so aus, als ob das Problem bei der Leitung liegt)norm.normalize(targetFile):

Exception in thread "main" org.encog.app.analyst.AnalystError: Can't find column: 11700
    at org.encog.app.analyst.util.CSVHeaders.find(CSVHeaders.java:187)
    at org.encog.app.analyst.csv.normalize.AnalystNormalizeCSV.extractFields(AnalystNormalizeCSV.java:77)
    at org.encog.app.analyst.csv.normalize.AnalystNormalizeCSV.normalize(AnalystNormalizeCSV.java:192)
    at IEinSoftware.main(IEinSoftware.java:55)

Antworten auf die Frage(2)

Ihre Antwort auf die Frage