コード例 #1
0
 def test_basic_run_simulation(self):
     inputs = np.random.rand(10, 10)
     targets = np.array([[1, 0], [1, 0], [1, 0], [0, 1], [0, 1], [1, 0], [0, 1], [1, 0], [0, 1], [0, 1]])
     network = esn.EchoStateNetwork(inputs, targets)
     print '\nRunning basic simulation...'
     accuracy = esn.run_simulation(network)
     print 'Test accuracy:'
     print accuracy