Package org.encog.ml.data.buffer.codec

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


     * @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


      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

   */
  public SQLNeuralDataSet(
      final Connection theConnection, final String theSQL,
      final int theInputSize, final int theIdealSize) {

    DataSetCODEC codec = new SQLCODEC(theConnection, theSQL, theInputSize,
        theIdealSize);
        MemoryDataLoader load = new MemoryDataLoader(codec);
        load.setResult(this);
        load.external2Memory();
  }
View Full Code Here

   */
  public SQLNeuralDataSet(final String sql, final int inputSize,
      final int idealSize, final String driver, final String url,
      final String uid, final String pwd) {

    DataSetCODEC codec = new SQLCODEC(sql, inputSize, idealSize, driver,
        url, uid, pwd);
        MemoryDataLoader load = new MemoryDataLoader(codec);
        load.setResult(this);
        load.external2Memory();
  }
View Full Code Here

      // no extension
      if (ExtensionFilter.getExtension(binaryFile) == null) {
        binaryFile = new File(binaryFile.getPath() + ".egb");
      }

      DataSetCODEC codec;
      BinaryDataLoader loader;

      if (fileType == 0) {
        DialogCSV dialog2 = new DialogCSV(EncogWorkBench.getInstance()
            .getMainWindow());
View Full Code Here

      dialog.getBinaryFile().setValue(inBinaryFile.toString());
    if (dialog.process()) {
      File binaryFile = new File(dialog.getBinaryFile().getValue());
      File externFile = new File(dialog.getExternalFile().getValue());
      int fileType = dialog.getFileType().getSelectedIndex();
      DataSetCODEC codec;
      BinaryDataLoader loader;

      if (fileType == 0) {
        DialogCSV dialog2 = new DialogCSV(EncogWorkBench.getInstance()
            .getMainWindow());
View Full Code Here

     * @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

   */
  public SQLNeuralDataSet(
      final Connection theConnection, final String theSQL,
      final int theInputSize, final int theIdealSize) {

    DataSetCODEC codec = new SQLCODEC(theConnection, theSQL, theInputSize,
        theIdealSize);
        MemoryDataLoader load = new MemoryDataLoader(codec);
        load.setResult(this);
        load.external2Memory();
  }
View Full Code Here

   */
  public SQLNeuralDataSet(final String sql, final int inputSize,
      final int idealSize, final String driver, final String url,
      final String uid, final String pwd) {

    DataSetCODEC codec = new SQLCODEC(sql, inputSize, idealSize, driver,
        url, uid, pwd);
        MemoryDataLoader load = new MemoryDataLoader(codec);
        load.setResult(this);
        load.external2Memory();
  }
View Full Code Here

      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

Related Classes of org.encog.ml.data.buffer.codec.DataSetCODEC

Copyright © 2018 www.massapicom. 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.