def test_TrainAsyncWeighted_Works(self):
     X = self.makeh5(np.array([1, 2, 3, 1, 2, 3]))
     T = self.makeh5(
         np.array([[1, 0], [1, 0], [1, 0], [0, 1], [0, 1], [0, 1]]))
     hpelm = HPELM(1, 2)
     hpelm.add_neurons(1, "lin")
     hpelm.train_async(X, T, 'wc', wc=(1, 2))
 def test_TrainAsyncIndexed_Works(self):
     X = self.makeh5(np.array([[1, 2], [3, 4], [5, 6], [7, 8]]))
     T = self.makeh5(np.array([[1], [2], [3], [4]]))
     hpelm = HPELM(2, 1)
     hpelm.add_neurons(1, "lin")
     hpelm.train_async(X, T, istart=1, icount=2)
 def test_TrainAsync_Works(self):
     X = self.makeh5(np.array([[1, 2], [3, 4], [5, 6]]))
     T = self.makeh5(np.array([[1], [2], [3]]))
     hpelm = HPELM(2, 1)
     hpelm.add_neurons(1, "lin")
     hpelm.train_async(X, T)
Exemplo n.º 4
0
 def test_TrainAsyncIndexed_Works(self):
     X = self.makeh5(np.array([[1, 2], [3, 4], [5, 6], [7, 8]]))
     T = self.makeh5(np.array([[1], [2], [3], [4]]))
     hpelm = HPELM(2, 1)
     hpelm.add_neurons(1, "lin")
     hpelm.train_async(X, T, istart=1, icount=2)
Exemplo n.º 5
0
 def test_TrainAsyncWeighted_Works(self):
     X = self.makeh5(np.array([1, 2, 3, 1, 2, 3]))
     T = self.makeh5(np.array([[1, 0], [1, 0], [1, 0], [0, 1], [0, 1], [0, 1]]))
     hpelm = HPELM(1, 2)
     hpelm.add_neurons(1, "lin")
     hpelm.train_async(X, T, 'wc', wc=(1,2))
Exemplo n.º 6
0
 def test_TrainAsync_Works(self):
     X = self.makeh5(np.array([[1, 2], [3, 4], [5, 6]]))
     T = self.makeh5(np.array([[1], [2], [3]]))
     hpelm = HPELM(2, 1)
     hpelm.add_neurons(1, "lin")
     hpelm.train_async(X, T)