Package org.encog.mathutil.randomize

Examples of org.encog.mathutil.randomize.RangeRandomizer


    }
   
    if (useNWR) {
      return new NguyenWidrowRandomizer();
    } else {
      return new RangeRandomizer(-1,1);
    }
  }
View Full Code Here


  public void testTracks()
  {   
    BasicNetwork network = EncogUtility.simpleFeedForward(5,10,15,20, true);
    double[] weights = network.getStructure().getFlat().getWeights();
    EngineArray.fill(weights, 100);
    (new RangeRandomizer(-1,1)).randomize(network);
   
    for(int i=0;i<weights.length;i++ )
    {
      Assert.assertTrue(weights[i]<10);
    }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  @Override
  public void reset() {
    (new RangeRandomizer(-1, 1)).randomize(this);
  }
View Full Code Here

    network.addLayer(inputLayer);
    network.addLayer(outputLayer);
    network.getStructure().finalizeStructure();

    (new RangeRandomizer(-0.5, 0.5)).randomize(network);

    return network;
  }
View Full Code Here

TOP

Related Classes of org.encog.mathutil.randomize.RangeRandomizer

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.