Package org.encog.ml.data.basic

Examples of org.encog.ml.data.basic.BasicMLData.clear()


    // iterate through the network FlushCount times
    for (int i = 0; i < flushCount; ++i) {
      int outputIndex = 0;
      int index = 0;

      result.clear();

      // populate the input neurons
      while (this.neurons.get(index).getNeuronType()
          == NEATNeuronType.Input) {
        this.neurons.get(index).setOutput(input.getData(index));
View Full Code Here


            weight));
      }
    }

    // now create biased links
    input.clear();
    final int d = substrate.getDimensions();
    final List<SubstrateNode> biasedNodes = substrate.getBiasedNodes();
    for (final SubstrateNode target : biasedNodes) {
      for (int i = 0; i < d; i++) {
        input.setData(d + i, target.getLocation()[i]);
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.