from itertools import chain
letters = ['a', 'b', 'c']
booleans = [1, 0, 1]
decimals = [0.1, 0.7, 0.4]
print list(itertools.chain(letters, booleans, decimals))
# ['a', 'b', 'c', 1, 0, 1, 0.1, 0.7, 0.4]
train = pd.read_csv(path_train)
train = train.sample(frac=1) # 랜덤추출
torch.ones(10)
# tensor([1., 1., 1., 1., 1., 1., 1., 1., 1., 1.])
torch.zeros(10)
# tensor([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])
nn.Parameter(torch.ones(10)).data.fill_(1.0)
# tensor([1., 1., 1., 1., 1., 1., 1., 1., 1., 1.])
nn.Parameter(torch.zeros(10)).data.zero_()
# tensor([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])
a = torch.tensor([1, 2, 3])
a.pow(2)
# tensor([1, 4, 9])