In 56 vectors Out 56 array 82947114 07132016 27841129 array 33957618 8

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
In [56]: vectors
Out[56]:
[array([[ 0.82947114],
[ 0.07132016],
[ 0.27841129]]), array([[ 0.33957618],
[ 0.8736464 ],
[ 0.1143634 ]]), array([[ 0.37863412],
[ 0.37803862],
[ 0.01930778]])]
In [57]: np.matrix(vectors)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-57-f718fccb017f> in <module>()
----> 1 np.matrix(vectors)
/usr/lib64/python2.7/site-packages/numpy/matrixlib/defmatrix.pyc in __new__(subtype, data, dtype, copy)
270 shape = arr.shape
271 if (ndim > 2):
--> 272 raise ValueError("matrix must be 2-dimensional")
273 elif ndim == 0:
274 shape = (1, 1)
ValueError: matrix must be 2-dimensional
In [58]: