在python的程序中,发现了如下的伪随机数产生的代码 rng = numpy.random.RandomState(23355) arrayA = rng.uniform(0,1,(2,3)) 该段代码的目的是产生一个2行3列的assarray,其中的每个元素都是[0,1]区间的均匀分布的随机数
                            
                            
                                分类:
其他好文   时间:
2016-02-09 08:05:01   
                                阅读次数:
140
                             
                    
                        
                            
                            
                                按照此顺序安装吧~1. Python2.7:地址:https://www.python.org/ftp/python/2.7.10/python-2.7.10.msi选择32位的软件哦,名字为Windows x86 MSI installer。安装方法:直接运行,要注意安装地址选择C盘2. nump...
                            
                            
                                分类:
编程语言   时间:
2015-11-12 18:13:52   
                                阅读次数:
339
                             
                    
                        
                            
                            
                                kmeans算法的python实现:参考与样本来源《Machine Learning in Action》 1 #-*-coding:UTF-8-*- 2 ''' 3 Created on 2015年8月19日 4 @author: Ayumi Phoenix 5 ''' 6 import nump...
                            
                            
                                分类:
编程语言   时间:
2015-08-19 12:44:36   
                                阅读次数:
206
                             
                    
                        
                            
                            
                                1. range()函数的使用:a - range(n)为0~n-1b - range(m,n) 为 m~n-1notice: 均不包含n,即类似左闭右开的区间形式 [... ...)2. import ... 与 from ... import * 的区别:example -import nump...
                            
                            
                                分类:
编程语言   时间:
2015-05-07 10:20:02   
                                阅读次数:
179
                             
                    
                        
                            
                            
                                #include#includeint main(){ int n; scanf("%d",&n); while(n--) { char str[110]; scanf("%s",str); int len=strlen(str); int numP=0,numT=0...
                            
                            
                                分类:
其他好文   时间:
2015-03-08 11:41:52   
                                阅读次数:
142