, inf, 1.33333333, 0.88888889],
[3. , 1.33333333, inf, 2...., 4. ],
[ inf, 0.5 , 0.85714286, 0.85714286, 3. ],
[...# 矩阵相乘(A列=B行才可以)
A * B
---------------------------------------------------------------------------
ValueError...__ internals> in dot(*args, **kwargs)
ValueError: shapes (4,5) and (4,5) not aligned: 5 (dim 1) !...= 4 (dim 0)
# 范围为10,长度size
a = np.mat(np.random.randint(10, size=20).reshape(4,5))
a
matrix([[0, 2, 0