Package org.encog.util.normalize.input

Examples of org.encog.util.normalize.input.MLDataFieldHolder


      final ReadCSV csv = this.csvMap.get(field);
      result = csv.getDouble(fieldCSV.getOffset());
    } else if (field instanceof InputFieldMLDataSet) {
      final InputFieldMLDataSet neuralField =
        (InputFieldMLDataSet) field;
      final MLDataFieldHolder holder = this.dataSetFieldMap
          .get(field);
      final MLDataPair pair = holder.getPair();
      int offset = neuralField.getOffset();
      if (offset < pair.getInput().size()) {
        result = pair.getInput().getData(offset);
      } else {
        offset -= pair.getInput().size();
View Full Code Here


    // see if any of the data sets want to stop
    for (final Iterator<MLDataPair> iterator : this.readDataSet) {
      if (!iterator.hasNext()) {
        return false;
      }
      final MLDataFieldHolder holder = this.dataSetIteratorMap
          .get(iterator);
      final MLDataPair pair = iterator.next();
      holder.setPair(pair);
    }

    // see if any of the arrays want to stop
    for (final InputField field : this.inputFields) {
      if (field instanceof HasFixedLength) {
View Full Code Here

          (InputFieldMLDataSet) field;
        final MLDataSet dataSet = dataSetField.getNeuralDataSet();
        if (!uniqueSets.containsKey(dataSet)) {
          final Iterator<MLDataPair> iterator = dataSet
              .iterator();
          final MLDataFieldHolder holder =
            new MLDataFieldHolder(
              iterator, dataSetField);
          uniqueSets.put(dataSet, holder);
          this.readDataSet.add(iterator);
        }

        final MLDataFieldHolder holder = uniqueSets.get(dataSet);

        this.dataSetFieldMap.put(dataSetField, holder);
        this.dataSetIteratorMap.put(holder.getIterator(), holder);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.encog.util.normalize.input.MLDataFieldHolder

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.