Package org.encog.util.normalize.input

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


  private double determineInputFieldValue(final InputField field,
      final int index) {
    double result = 0;

    if( field instanceof InputFieldCSVText ) {
      final InputFieldCSVText fieldCSV = (InputFieldCSVText) field;
      final ReadCSV csv = this.csvMap.get(field);
      String v = csv.get(fieldCSV.getOffset());
      if( !fieldCSV.getMappings().containsKey(v) ) {
        throw new NormalizationError("Undefined class value: " + v);
      } else {
        result =  fieldCSV.getMappings().get(v);
      }
    } else if (field instanceof InputFieldCSV) {
      final InputFieldCSV fieldCSV = (InputFieldCSV) field;
      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);
View Full Code Here

TOP

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

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.