Examples of CSVDataCODEC


Examples of org.encog.ml.data.buffer.codec.CSVDataCODEC

     * @param significance True, if there is a significance column.
     * @return The loaded dataset.
     */
    public static MLDataSet loadCSV2Memory(String filename, int input, int ideal, boolean headers, CSVFormat format, boolean significance)
    {
        DataSetCODEC codec = new CSVDataCODEC(new File(filename), format, headers, input, ideal, significance);
        MemoryDataLoader load = new MemoryDataLoader(codec);
        MLDataSet dataset = load.external2Memory();
        return dataset;
    }
View Full Code Here

Examples of org.encog.ml.data.buffer.codec.CSVDataCODEC

      final CSVFormat theFormat,
      final boolean significance) {
    this.filename = theFilename;
    this.format = theFormat;

    final DataSetCODEC codec = new CSVDataCODEC(new File(filename), format,
        theHeaders, theInputSize, theIdealSize, significance);
    final MemoryDataLoader load = new MemoryDataLoader(codec);
    load.setResult(this);
    load.external2Memory();
  }
View Full Code Here

Examples of org.encog.ml.data.buffer.codec.CSVDataCODEC

          if (dialog2.getDecimalComma().getValue())
            format = CSVFormat.DECIMAL_COMMA;
          else
            format = CSVFormat.DECIMAL_POINT;

          codec = new CSVDataCODEC(externFile, format, headers,
              inputCount, idealCount, dialog.getContainsSignificance().getValue());
          loader = new BinaryDataLoader(codec);
          ImportExportDialog dlg = new ImportExportDialog(loader,
              binaryFile, true);
          dlg.process(done);
View Full Code Here

Examples of org.encog.ml.data.buffer.codec.CSVDataCODEC

          if (dialog2.getDecimalComma().getValue())
            format = CSVFormat.DECIMAL_COMMA;
          else
            format = CSVFormat.DECIMAL_POINT;

          codec = new CSVDataCODEC(externFile, format,
              dialog2.getGenerateSignificance().getValue());
          loader = new BinaryDataLoader(codec);

          ImportExportDialog dlg = new ImportExportDialog(loader,
              binaryFile, false);
View Full Code Here

Examples of org.encog.ml.data.buffer.codec.CSVDataCODEC

  {
    ArrayDataCODEC codec = new ArrayDataCODEC(XOR.XOR_INPUT,XOR.XOR_IDEAL);
    BinaryDataLoader loader = new BinaryDataLoader(codec);
    loader.external2Binary(new File("encog.bin"));
 
    CSVDataCODEC codec2 = new CSVDataCODEC(new File("encog.csv"), CSVFormat.ENGLISH, false);
    BinaryDataLoader loader2 = new BinaryDataLoader(codec2);
    loader2.binary2External(new File("encog.bin"));
   
    CSVDataCODEC codec3 = new CSVDataCODEC(new File("encog.csv"), CSVFormat.ENGLISH, false, 2, 1, false);
    BinaryDataLoader loader3 = new BinaryDataLoader(codec3);
    loader3.external2Binary(new File("encog.bin"));

    ArrayDataCODEC codec4 = new ArrayDataCODEC();
    BinaryDataLoader loader4 = new BinaryDataLoader(codec4);
View Full Code Here

Examples of org.encog.ml.data.buffer.codec.CSVDataCODEC

     * @param significance True, if there is a significance column.
     * @return The loaded dataset.
     */
    public static MLDataSet loadCSV2Memory(String filename, int input, int ideal, boolean headers, CSVFormat format, boolean significance)
    {
        DataSetCODEC codec = new CSVDataCODEC(new File(filename), format, headers, input, ideal, significance);
        MemoryDataLoader load = new MemoryDataLoader(codec);
        MLDataSet dataset = load.external2Memory();
        return dataset;
    }
View Full Code Here

Examples of org.encog.ml.data.buffer.codec.CSVDataCODEC

  {
    ArrayDataCODEC codec = new ArrayDataCODEC(XOR.XOR_INPUT,XOR.XOR_IDEAL);
    BinaryDataLoader loader = new BinaryDataLoader(codec);
    loader.external2Binary(new File("encog.bin"));
 
    CSVDataCODEC codec2 = new CSVDataCODEC(new File("encog.csv"), CSVFormat.ENGLISH, false);
    BinaryDataLoader loader2 = new BinaryDataLoader(codec2);
    loader2.binary2External(new File("encog.bin"));
   
    CSVDataCODEC codec3 = new CSVDataCODEC(new File("encog.csv"), CSVFormat.ENGLISH, false, 2, 1, false);
    BinaryDataLoader loader3 = new BinaryDataLoader(codec3);
    loader3.external2Binary(new File("encog.bin"));

    ArrayDataCODEC codec4 = new ArrayDataCODEC();
    BinaryDataLoader loader4 = new BinaryDataLoader(codec4);
View Full Code Here

Examples of org.encog.ml.data.buffer.codec.CSVDataCODEC

      final CSVFormat theFormat,
      final boolean significance) {
    this.filename = theFilename;
    this.format = theFormat;

    final DataSetCODEC codec = new CSVDataCODEC(new File(filename), format,
        theHeaders, theInputSize, theIdealSize, significance);
    final MemoryDataLoader load = new MemoryDataLoader(codec);
    load.setResult(this);
    load.external2Memory();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.