Examples of RangeRandomizer


Examples of org.encog.mathutil.randomize.RangeRandomizer

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

Examples of org.encog.mathutil.randomize.RangeRandomizer

  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

Examples of org.encog.mathutil.randomize.RangeRandomizer

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

Examples of org.encog.mathutil.randomize.RangeRandomizer

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

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

    return network;
  }
View Full Code Here

Examples of tv.floe.metronome.classification.neuralnetworks.math.random.RangeRandomizer

       
    }
   
    public void randomizeWeights(double minWeight, double maxWeight) {
     
        this.randomizeWeights( new RangeRandomizer( minWeight, maxWeight ) );
       
    }
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.