1train_target = torch.tensor(train['Target'].values.astype(np.float32))
2train = torch.tensor(train.drop('Target', axis = 1).values.astype(np.float32))
3train_tensor = data_utils.TensorDataset(train, train_target)
4train_loader = data_utils.DataLoader(dataset = train_tensor, batch_size = batch_size, shuffle = True)
5
1import torch
2import pandas as pd
3
4x = torch.rand(4,4)
5px = pd.DataFrame(x.numpy())
6