python in action
时间:2014-05-05 22:24:10
收藏:0
阅读:336
1. introduction
from numpy import *
random.rand(4,4)
#array to matrix
randMat=mat(randon.rand(4,4))
#matrix inverse
IvrandMat=randMat.I
#indentity matrix
eye(4) # 4*4 identity matrix
randMat*IvrandMat
2. knn
评论(0)