Python NumPy, remove unnecessary brackets
Try .flatten(), .ravel(), .reshape(-1), .squeeze().
In Numpy, Transposing of a column vector makes the the array an embedded array.
For example, transposing
[[1.],[2.],[3.]] gives [[1., 2., 3.]] and the dimension of the outermost array is 1. And this produces many errors in my code. Is there a way to produce [1., 2., 3.] directly?