int mid[] = {3, 5, 8, 11, 12, 14, 19};
int high[] = {1, 6, 9, 13, 15, 17};
// input connections for the first price class
for(int i = 0; i < 7; i++) {
Neuron fromNeuron = this.getLayerAt(inputLayerIdx).getNeuronAt(low[i]);
Neuron toNeuron = this.getLayerAt(priceLayerIdx).getNeuronAt(0);
this.createConnection(fromNeuron, toNeuron, 0.1);
}
// input connections for the second price class
for(int i = 0; i < 7; i++) {
Neuron fromNeuron = this.getLayerAt(inputLayerIdx).getNeuronAt(mid[i]);
Neuron toNeuron = this.getLayerAt(priceLayerIdx).getNeuronAt(1);
this.createConnection(fromNeuron, toNeuron, 0.1);
}
// input connections for the third price class
for(int i = 0; i < 6; i++) {
Neuron fromNeuron = this.getLayerAt(inputLayerIdx).getNeuronAt(high[i]);
Neuron toNeuron = this.getLayerAt(priceLayerIdx).getNeuronAt(2);
this.createConnection(fromNeuron, toNeuron, 0.1);
}
// output connections for the first price class
for(int i = 0; i < 7; i++) {
Neuron fromNeuron = this.getLayerAt(priceLayerIdx).getNeuronAt(0);
Neuron toNeuron = this.getLayerAt(outputLayerIdx).getNeuronAt(low[i]);
this.createConnection(fromNeuron, toNeuron, 0.1);
}
// output connections for the second price class
for(int i = 0; i < 7; i++) {
Neuron fromNeuron = this.getLayerAt(priceLayerIdx).getNeuronAt(1);
Neuron toNeuron = this.getLayerAt(outputLayerIdx).getNeuronAt(mid[i]);
this.createConnection(fromNeuron, toNeuron, 0.1);
}
// output connections for the third price class
for(int i = 0; i < 6; i++) {
Neuron fromNeuron = this.getLayerAt(priceLayerIdx).getNeuronAt(2);
Neuron toNeuron = this.getLayerAt(outputLayerIdx).getNeuronAt(high[i]);
this.createConnection(fromNeuron, toNeuron, 0.1);
}
}