I have the following array:
x_train.shape
(7201,)
x_train
array([array([[0.01709922],
[0.01946028],
[0.01317027],
[0.01228488],
[0.01372365],
[0.02148931],
[0.01127036],
[0.01887001],
[0.01468282],
[0.01235866]], dtype=float32),
array([[0.01269068],
[0.01193441],
[0.01077232],
[0.01219265],
[0.02014277],
[0.01250623],
[0.01759726],
[0.01145482],
[0.00204748],
[0.00372604]], dtype=float32),
array([[0.01660118],
[0.01931271],
[0.02100972],
[0.0167303 ],
[0.02126796],
[0.01245089],
[0.00612399],
[0.01128881],
[0.01344696],
[0.01422168]], dtype=float32),
...,
I want to transform it into the shape (X,10,1).
How can i do this in the first place, whats an efficient way to do this?
np.stack(x_train)should work.