Package org.encog.mathutil.randomize

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


          double weight = this.network.getWeight(fromLayer,
              fromNeuron, toNeuron);

          if (randomize) {
            weight = d.randomize(weight);
          }

          newWeights[weightsIndex++] = weight;
        }
      }
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

          .getHigh().getValue(), false);
      break;
    }

    if (r != null) {
      r.randomize((BasicNetwork) this.method);
      setDirty(true);
    }
  }

  private void performQuery() {
View Full Code Here

          double weight = this.network.getWeight(fromLayer,
              fromNeuron, toNeuron);

          if (randomize) {
            weight = d.randomize(weight);
          }

          newWeights[weightsIndex++] = weight;
        }
      }
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.