data_file1 = “/Data_train_A.csv”
rnaseq = pd.read_csv(data_file1, index_col=0, header=0)
rnaseq_tensor1 = torch.FloatTensor(rnaseq.values)
#print(rnaseq.shape)
data_file2 = “/Data_train_B.csv”
rnaseq = pd.read_csv(data_file2, index_col=0, header=0)
rnaseq_tensor2 = torch.FloatTensor(rnaseq.values)
#print(rnaseq.shape)
dataset = TensorDataset(rnaseq_tensor1,rnaseq_tensor2)
dataloader = DataLoader(dataset,batchsize=2)
for batch_idx, (a,b) in enumerate(dataloader):
print(a.shape, b.shape)