I want to convert my 6 line logic into single line. So basically i want to reduce the dimentionality of the vector. numpy.x.reshape
is not an option, as i wanted to do it using simple python
for example i have
t = [[[0.304987, 0.284468], [0.928274, 0.966849]], [[0.712916, 0.721612], [0.104858, 0.123942]]]
I want to convert it as
[[0.304987, 0.284468, 0.928274, 0.966849], [0.712916, 0.721612, 0.104858, 0.123942]]
so i did this as
X = []
for i in t:
ii = []
for exp in i:
ii.extend(exp)
X.append(ii)
I want to make it in one liner.