Package org.neuroph.core

Examples of org.neuroph.core.Layer.addNeuron()


        neuron.setLabel("Burglar");
        layer.addNeuron(neuron);

        neuron = new IACNeuron();
        neuron.setLabel("Bookie");
        layer.addNeuron(neuron);

        ConnectionFactory.fullConnect(layer, -0.3);

        //----------------------------------------------
View Full Code Here


        //----------------------------------------------

        layer = this.getLayerAt(6);

        neuron = new IACNeuron(); // Art     Jets  40's  J.H.  Single     Pusher
        layer.addNeuron(neuron);
        this.createConnection(neuron, this.getLayerAt(0).getNeuronAt(0), 0.1)// art
        this.createConnection(neuron, this.getLayerAt(1).getNeuronAt(0), 0.1)// jets
        this.createConnection(neuron, this.getLayerAt(2).getNeuronAt(2), 0.1)// 40'a
        this.createConnection(neuron, this.getLayerAt(3).getNeuronAt(0), 0.1)// J.H.
        this.createConnection(neuron, this.getLayerAt(4).getNeuronAt(0), 0.1)// Single
View Full Code Here

        this.createConnection(this.getLayerAt(4).getNeuronAt(0), neuron, 0.1)// Single
        this.createConnection(this.getLayerAt(5).getNeuronAt(0), neuron, 0.1)// Pusher


        neuron = new IACNeuron(); // Rick  Sharks  30's  H.S.  Divorced   Burglar
        layer.addNeuron(neuron);
        this.createConnection(neuron, this.getLayerAt(0).getNeuronAt(1), 0.1)// Rick
        this.createConnection(neuron, this.getLayerAt(1).getNeuronAt(1), 0.1)// Sharks
        this.createConnection(neuron, this.getLayerAt(2).getNeuronAt(1), 0.1)// 30'a
        this.createConnection(neuron, this.getLayerAt(3).getNeuronAt(1), 0.1)// H.S.
        this.createConnection(neuron, this.getLayerAt(4).getNeuronAt(2), 0.1)// Divorced
View Full Code Here

        this.createConnection(this.getLayerAt(3).getNeuronAt(1), neuron, 0.1)// H.S.
        this.createConnection(this.getLayerAt(4).getNeuronAt(2), neuron, 0.1)// Divorced
        this.createConnection(this.getLayerAt(5).getNeuronAt(1), neuron, 0.1)// Burglar

        neuron = new IACNeuron(); // Sam     Jets  20's  College  Single     Bookie
        layer.addNeuron(neuron);
        this.createConnection(neuron, this.getLayerAt(0).getNeuronAt(2), 0.1)// Sam
        this.createConnection(neuron, this.getLayerAt(1).getNeuronAt(0), 0.1)// Jets
        this.createConnection(neuron, this.getLayerAt(2).getNeuronAt(0), 0.1)// 20's
        this.createConnection(neuron, this.getLayerAt(3).getNeuronAt(2), 0.1)// College
        this.createConnection(neuron, this.getLayerAt(4).getNeuronAt(0), 0.1)// Single
View Full Code Here

        this.createConnection(this.getLayerAt(3).getNeuronAt(2), neuron, 0.1)// College
        this.createConnection(this.getLayerAt(4).getNeuronAt(0), neuron, 0.1)// Single
        this.createConnection(this.getLayerAt(5).getNeuronAt(2), neuron, 0.1)// Bookie

        neuron = new IACNeuron(); // Ralph  Jets  30's  J.H.  Single     Pusher
        layer.addNeuron(neuron);
        this.createConnection(neuron, this.getLayerAt(0).getNeuronAt(3), 0.1)// Ralph
        this.createConnection(neuron, this.getLayerAt(1).getNeuronAt(0), 0.1)// Jets
        this.createConnection(neuron, this.getLayerAt(2).getNeuronAt(1), 0.1)// 30's
        this.createConnection(neuron, this.getLayerAt(3).getNeuronAt(0), 0.1)// J.H.
        this.createConnection(neuron, this.getLayerAt(4).getNeuronAt(0), 0.1)// Single
View Full Code Here

        this.createConnection(this.getLayerAt(3).getNeuronAt(0), neuron, 0.1)// J.H.
        this.createConnection(this.getLayerAt(4).getNeuronAt(0), neuron, 0.1)// Single
        this.createConnection(this.getLayerAt(5).getNeuronAt(0), neuron, 0.1)// Pusher

        neuron = new IACNeuron(); // Lance  Jets  20's  J.H.  Married    Burglar
        layer.addNeuron(neuron);
        this.createConnection(neuron, this.getLayerAt(0).getNeuronAt(4), 0.1)// Lance
        this.createConnection(neuron, this.getLayerAt(1).getNeuronAt(0), 0.1)// Jets
        this.createConnection(neuron, this.getLayerAt(2).getNeuronAt(0), 0.1)// 20's
        this.createConnection(neuron, this.getLayerAt(3).getNeuronAt(0), 0.1)// J.H.
        this.createConnection(neuron, this.getLayerAt(4).getNeuronAt(1), 0.1)// Married
View Full Code Here

  public static Layer createLayer(Vector<NeuronProperties> neuronPropertiesVector) {
    Layer layer = new Layer();
   
    for(NeuronProperties neuronProperties : neuronPropertiesVector) {
      Neuron neuron = NeuronFactory.createNeuron(neuronProperties);
      layer.addNeuron(neuron);
    }
   
    return layer;
  }
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.