99100101102103104105106107108109
total_records++; mlp_network.setInputVector( v0 ); mlp_network.calculate(); Vector networkOutput = mlp_network.getOutputVector(); System.out.println( "> out: 0 =? " + networkOutput.get(0) );
107108109110111112113114115116117
System.out.println( "> out: 0 =? " + networkOutput.get(0) ); mlp_network.setInputVector( v1 ); mlp_network.calculate(); Vector networkOutput_1 = mlp_network.getOutputVector(); System.out.println( "> out: 1 =? " + networkOutput_1.get(0) );
114115116117118119120121122123124
System.out.println( "> out: 1 =? " + networkOutput_1.get(0) ); mlp_network.setInputVector( v2 ); mlp_network.calculate(); Vector networkOutput_2 = mlp_network.getOutputVector(); System.out.println( "> out: 1 =? " + networkOutput_2.get(0) );
121122123124125126127128129130131
System.out.println( "> out: 1 =? " + networkOutput_2.get(0) ); mlp_network.setInputVector( v3 ); mlp_network.calculate(); Vector networkOutput_3 = mlp_network.getOutputVector(); System.out.println( "> out: 0 =? " + networkOutput_3.get(0) );