首页 > 编程语言 > 详细

python in action

时间:2014-05-05 22:23:25      阅读:351      评论:0      收藏:0      [点我收藏+]

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

bubuko.com,布布扣

bubuko.com,布布扣

 

 

 

 

python in action,布布扣,bubuko.com

python in action

原文:http://www.cnblogs.com/jsquare/p/3704846.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!