Jun-17-2020, 10:29 PM
It looks that this operation adds an axis to my array, turning it from 2D into 3D
X[:, np.newaxis, :]
Output:array([[[0.37454012, 0.95071431]],
[[0.73199394, 0.59865848]],
[[0.15601864, 0.15599452]],
[[0.05808361, 0.86617615]],
[[0.60111501, 0.70807258]],
[[0.02058449, 0.96990985]],
[[0.83244264, 0.21233911]],
[[0.18182497, 0.18340451]],
[[0.30424224, 0.52475643]],
[[0.43194502, 0.29122914]]])