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

Examples of org.encog.ml.data.versatile.normalizers.strategies.BasicNormalizationStrategy


      throw new EncogError("SVM does not support multiple output columns.");
    }
   
    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


  public NormalizationStrategy suggestNormalizationStrategy(VersatileMLDataSet dataset, String architecture) {
    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

      throw new EncogError("PNN does not support multiple output columns.");
    }
   
    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

   
    if( d[0]>0 && d[1]>0 && d[2]>0 ) {
      inputLow=0;
    }
   
    NormalizationStrategy result = new BasicNormalizationStrategy(
        inputLow,
        inputHigh,
        outputLow,
        outputHigh);
    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

TOP

Related Classes of org.encog.ml.data.versatile.normalizers.strategies.BasicNormalizationStrategy

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.