def test_AddDataAsyncToFile_SingleAddition(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(3, "lin") fHH = self.makefile() fHT = self.makefile() hpelm.add_data_async(X, T, fHH=fHH, fHT=fHT)
def test_AddDataToFile_MixedSequentialAsync(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(3, "lin") fHH = self.makefile() fHT = self.makefile() hpelm.add_data(X, T, fHH=fHH, fHT=fHT) hpelm.add_data_async(X, T, fHH=fHH, fHT=fHT)