}
// creates jets and sharks IAC example
private void createNetwork() {
// napraviti elegantni api za kreiranje vise layera NeuralNetwork.createLayers(6); // creates 6 empty layers
this.addLayer(new Layer()); // Name
this.addLayer(new Layer()); // Gang
this.addLayer(new Layer()); // Age
this.addLayer(new Layer()); // Education
this.addLayer(new Layer()); // Marital Status
this.addLayer(new Layer()); // Occupation
this.addLayer(new Layer()); // Associations
Layer layer = this.getLayerAt(0);
IACNeuron neuron = new IACNeuron();
neuron.setLabel("Art");
layer.addNeuron(neuron);
neuron = new IACNeuron();
neuron.setLabel("Rick");
layer.addNeuron(neuron);
neuron = new IACNeuron();
neuron.setLabel("Sam");
layer.addNeuron(neuron);
neuron = new IACNeuron();
neuron.setLabel("Ralph");
layer.addNeuron(neuron);
neuron = new IACNeuron();
neuron.setLabel("Lance");
layer.addNeuron(neuron);
ConnectionFactory.fullConnect(layer, -0.3);
//----------------------------------------------
layer = this.getLayerAt(1);
neuron = new IACNeuron();
neuron.setLabel("Jets");
layer.addNeuron(neuron);
neuron = new IACNeuron();
neuron.setLabel("Sharks");
layer.addNeuron(neuron);
ConnectionFactory.fullConnect(layer, -0.3);
//----------------------------------------------
layer = this.getLayerAt(2);
neuron = new IACNeuron();
neuron.setLabel("20's");
layer.addNeuron(neuron);
neuron = new IACNeuron();
neuron.setLabel("30's");
layer.addNeuron(neuron);
neuron = new IACNeuron();
neuron.setLabel("40's");
layer.addNeuron(neuron);
ConnectionFactory.fullConnect(layer, -0.3);
//----------------------------------------------
layer = this.getLayerAt(3);
neuron = new IACNeuron();
neuron.setLabel("J.H.");
layer.addNeuron(neuron);
neuron = new IACNeuron();
neuron.setLabel("H.S.");
layer.addNeuron(neuron);
neuron = new IACNeuron();
neuron.setLabel("College");
layer.addNeuron(neuron);
ConnectionFactory.fullConnect(layer, -0.3);
//----------------------------------------------
layer = this.getLayerAt(4);
neuron = new IACNeuron();
neuron.setLabel("Single");
layer.addNeuron(neuron);
neuron = new IACNeuron();
neuron.setLabel("Married");
layer.addNeuron(neuron);
neuron = new IACNeuron();
neuron.setLabel("Divorced");
layer.addNeuron(neuron);
ConnectionFactory.fullConnect(layer, -0.3);
//----------------------------------------------
layer = this.getLayerAt(5);
neuron = new IACNeuron();
neuron.setLabel("Pusher");
layer.addNeuron(neuron);
neuron = new IACNeuron();
neuron.setLabel("Burglar");
layer.addNeuron(neuron);
neuron = new IACNeuron();
neuron.setLabel("Bookie");
layer.addNeuron(neuron);
ConnectionFactory.fullConnect(layer, -0.3);
//----------------------------------------------
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
this.createConnection(neuron, this.getLayerAt(5).getNeuronAt(0), 0.1); // Pusher
this.createConnection(this.getLayerAt(0).getNeuronAt(0), neuron, 0.1); // art
this.createConnection(this.getLayerAt(1).getNeuronAt(0), neuron, 0.1); // jets
this.createConnection(this.getLayerAt(2).getNeuronAt(2), neuron, 0.1); // 40'a
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(); // 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
this.createConnection(neuron, this.getLayerAt(5).getNeuronAt(1), 0.1); // Burglar
this.createConnection(this.getLayerAt(0).getNeuronAt(1), neuron, 0.1); // Rick
this.createConnection(this.getLayerAt(1).getNeuronAt(1), neuron, 0.1); // Sharks
this.createConnection(this.getLayerAt(2).getNeuronAt(1), neuron, 0.1); // 30'a
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
this.createConnection(neuron, this.getLayerAt(5).getNeuronAt(2), 0.1); // Bookie
this.createConnection(this.getLayerAt(0).getNeuronAt(2), neuron, 0.1); // Sam
this.createConnection(this.getLayerAt(1).getNeuronAt(0), neuron, 0.1); // Jets
this.createConnection(this.getLayerAt(2).getNeuronAt(0), neuron, 0.1); // 20's
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
this.createConnection(neuron, this.getLayerAt(5).getNeuronAt(0), 0.1); // Pusher
this.createConnection(this.getLayerAt(0).getNeuronAt(3), neuron, 0.1); // Ralph
this.createConnection(this.getLayerAt(1).getNeuronAt(0), neuron, 0.1); // Jets
this.createConnection(this.getLayerAt(2).getNeuronAt(1), neuron, 0.1); // 30's
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