Package org.encog.mathutil.randomize

Examples of org.encog.mathutil.randomize.ConsistentRandomizer.randomize()


   */
  @Override
  public final void reset(final int seed) {
    final ConsistentRandomizer randomize = new ConsistentRandomizer(-1, 1,
        seed);
    randomize.randomize(this.weightsInputToInstar);
    randomize.randomize(this.weightsInstarToOutstar);
  }

  /**
   * {@inheritDoc}
 
View Full Code Here


  @Override
  public final void reset(final int seed) {
    final ConsistentRandomizer randomize = new ConsistentRandomizer(-1, 1,
        seed);
    randomize.randomize(this.weightsInputToInstar);
    randomize.randomize(this.weightsInstarToOutstar);
  }

  /**
   * {@inheritDoc}
   */
 
View Full Code Here

  public static FlatNetwork createNetwork() {
    BasicNetwork network = EncogUtility
        .simpleFeedForward(2, 4, 0, 1, false);
    Randomizer randomizer = new ConsistentRandomizer(-1, 1);
    randomizer.randomize(network);
    return network.getStructure().getFlat().clone();
  }

  public static void main(String[] args) {
   
View Full Code Here

  private void optionConsistent(RandomizeNetworkDialog dialog) {
    int seed = dialog.getSeedValue().getValue();
    double min = dialog.getConstLow().getValue();
    double max = dialog.getConstHigh().getValue();
    ConsistentRandomizer c = new ConsistentRandomizer(min, max, seed);
    c.randomize(this.method);
    setDirty(true);
  }

  private void optionPerturb(RandomizeNetworkDialog dialog) {
    double percent = dialog.getPerturbPercent().getValue();
View Full Code Here

   */
  @Override
  public void reset(final int seed) {
    final ConsistentRandomizer randomize = new ConsistentRandomizer(-1, 1,
        seed);
    randomize.randomize(this.weightsInputToInstar);
    randomize.randomize(this.weightsInstarToOutstar);
  }

  /**
   * {@inheritDoc}
 
View Full Code Here

  @Override
  public void reset(final int seed) {
    final ConsistentRandomizer randomize = new ConsistentRandomizer(-1, 1,
        seed);
    randomize.randomize(this.weightsInputToInstar);
    randomize.randomize(this.weightsInstarToOutstar);
  }

  /**
   * {@inheritDoc}
   */
 
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  public void reset(int seed) {
    ConsistentRandomizer randomizer = new ConsistentRandomizer(-1, 1, seed);
    randomizer.randomize(this);
  }

  /**
   * {@inheritDoc}
   */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.