| Matrix o = new Matrix(2, 2);
Layer il1 = new Layer();
Layer ol = new Layer();
Layer il2 = new Layer();
FullyConnected c1 = new FullyConnected(il1, ol, 3, 2);
FullyConnected c2 = new FullyConnected(il2, ol, 3, 2);
FullyConnected bc = new FullyConnected(new Layer(), ol, 1, 2);
Matrix cg = c1.getConnectionGraph();
cg.set(1, 0, 0);
cg.set(2, 0, 1);
cg.set(3, 0, 2);
cg.set(4, 1, 0);
cg.set(5, 1, 1);
cg.set(6, 1, 2);
cg = c2.getConnectionGraph();
cg.set(1, 0, 0);
cg.set(2, 0, 1);
cg.set(3, 0, 2);
cg.set(4, 1, 0);
cg.set(5, 1, 1);
cg.set(6, 1, 2);
Matrix i1 = new Matrix(3, 2);
i1.set(1, 0, 0);
i1.set(2, 1, 0);
i1.set(3, 2, 0);
i1.set(4, 0, 1);
i1.set(5, 1, 1);
i1.set(6, 2, 1);
Matrix i2 = new Matrix(3, 2);
i2.set(1, 0, 0);
i2.set(2, 1, 0);
i2.set(3, 2, 0);
i2.set(4, 0, 1);
i2.set(5, 1, 1);
i2.set(6, 2, 1);
Matrix bcg = bc.getConnectionGraph();
bcg.set(0.1f, 0, 0);
bcg.set(0.2f, 1, 0);
ConnectionCalculatorFullyConnected aws = new AparapiWeightedSumConnectionCalculator();
|