Package org.joone.engine

Examples of org.joone.engine.Synapse


    for (int i = 0; i < hiddenLayers; i++) {

      Layer currentLayer = NNLayer.newInstance(layer);
      currentLayer.setRows(hiddenLayerRows);

      Synapse currentSynapse = NNSynapse.newInstance(synapse);

      lastLayer.addOutputSynapse(currentSynapse);
      currentLayer.addInputSynapse(currentSynapse);

      nnLayers.add(currentLayer);
      lastLayer = currentLayer;
    }
    Synapse synapseToOutLayer = NNSynapse.newInstance(synapse);
    lastLayer.addOutputSynapse(synapseToOutLayer);

    LinearLayer outputLayer = new LinearLayer();
    outputLayer.addInputSynapse(synapseToOutLayer);
    outputLayer.setRows(1);
View Full Code Here

TOP

Related Classes of org.joone.engine.Synapse

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.