Package org.encog.ml.data.versatile.normalizers

Examples of org.encog.ml.data.versatile.normalizers.RangeNormalizer


    }
   
    ColumnType ct = dataset.getNormHelper().getOutputColumns().get(0).getDataType();
   
    BasicNormalizationStrategy result = new BasicNormalizationStrategy();
    result.assignInputNormalizer(ColumnType.continuous,new RangeNormalizer(0,1));
    result.assignInputNormalizer(ColumnType.nominal,new OneOfNNormalizer(0,1));
    result.assignInputNormalizer(ColumnType.ordinal,new OneOfNNormalizer(0,1));
   
    result.assignOutputNormalizer(ColumnType.continuous,new RangeNormalizer(0,1));
    result.assignOutputNormalizer(ColumnType.nominal,new IndexedNormalizer());
    result.assignOutputNormalizer(ColumnType.ordinal,new OneOfNNormalizer(0,1));
    return result;
  }
View Full Code Here


    int outputColumns = dataset.getNormHelper().getOutputColumns().size();

    ColumnType ct = dataset.getNormHelper().getOutputColumns().get(0).getDataType();
   
    BasicNormalizationStrategy result = new BasicNormalizationStrategy();
    result.assignInputNormalizer(ColumnType.continuous,new RangeNormalizer(0,1));
    result.assignInputNormalizer(ColumnType.nominal,new OneOfNNormalizer(0,1));
    result.assignInputNormalizer(ColumnType.ordinal,new OneOfNNormalizer(0,1));
   
    result.assignOutputNormalizer(ColumnType.continuous,new RangeNormalizer(0,1));
    result.assignOutputNormalizer(ColumnType.nominal,new OneOfNNormalizer(0,1));
    result.assignOutputNormalizer(ColumnType.ordinal,new OneOfNNormalizer(0,1));
    return result;
  }
View Full Code Here

    }
   
    ColumnType ct = dataset.getNormHelper().getOutputColumns().get(0).getDataType();
   
    BasicNormalizationStrategy result = new BasicNormalizationStrategy();
    result.assignInputNormalizer(ColumnType.continuous,new RangeNormalizer(0,1));
    result.assignInputNormalizer(ColumnType.nominal,new OneOfNNormalizer(0,1));
    result.assignInputNormalizer(ColumnType.ordinal,new OneOfNNormalizer(0,1));
   
    result.assignOutputNormalizer(ColumnType.continuous,new RangeNormalizer(0,1));
    result.assignOutputNormalizer(ColumnType.nominal,new IndexedNormalizer());
    result.assignOutputNormalizer(ColumnType.ordinal,new OneOfNNormalizer(0,1));
    return result;
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  public NormalizationStrategy suggestNormalizationStrategy(VersatileMLDataSet dataset, String architecture) {
    BasicNormalizationStrategy result = new BasicNormalizationStrategy();
    result.assignInputNormalizer(ColumnType.continuous,new RangeNormalizer(0,1));
    result.assignInputNormalizer(ColumnType.nominal,new OneOfNNormalizer(0,1));
    result.assignInputNormalizer(ColumnType.ordinal,new OneOfNNormalizer(0,1));
   
    result.assignOutputNormalizer(ColumnType.continuous,new RangeNormalizer(0,1));
    result.assignOutputNormalizer(ColumnType.nominal,new OneOfNNormalizer(0,1));
    result.assignOutputNormalizer(ColumnType.ordinal,new OneOfNNormalizer(0,1));
    return result;
  }
View Full Code Here

   * @param inputHigh The desired high to normalize input into.
   * @param outputLow The desired low to normalize output into.
   * @param outputHigh The desired high to normalize output into.
   */
  public BasicNormalizationStrategy(double inputLow, double inputHigh, double outputLow, double outputHigh) {
    assignInputNormalizer(ColumnType.continuous,new RangeNormalizer(inputLow,inputHigh));
    assignInputNormalizer(ColumnType.nominal,new OneOfNNormalizer(inputLow,inputHigh));
    assignInputNormalizer(ColumnType.ordinal,new RangeOrdinal(inputLow,inputHigh));
   
    assignOutputNormalizer(ColumnType.continuous,new RangeNormalizer(outputLow,outputHigh));
    assignOutputNormalizer(ColumnType.nominal,new OneOfNNormalizer(outputLow,outputHigh));
    assignOutputNormalizer(ColumnType.ordinal,new RangeOrdinal(outputLow,outputHigh));
  }
View Full Code Here

TOP

Related Classes of org.encog.ml.data.versatile.normalizers.RangeNormalizer

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.