摘要: numpy.random.rand Random values in a given shape. Create an array of the given shape and populate it with random samples from a uniform distribution o 阅读全文
posted @ 2017-03-23 22:34 KennyRom 阅读(326) 评论(0) 推荐(0) 编辑
摘要: numpy.mat Unlike matrix, asmatrix does not make a copy if the input is already a matrix or an ndarray. Equivalent to matrix(data, copy=False). data : 阅读全文
posted @ 2017-03-23 22:26 KennyRom 阅读(339) 评论(0) 推荐(0) 编辑
摘要: ndarray.shape Tuple of array dimensions. 阅读全文
posted @ 2017-03-23 22:20 KennyRom 阅读(799) 评论(0) 推荐(0) 编辑
摘要: 计算中所有元素的值 Example: 阅读全文
posted @ 2017-03-23 22:07 KennyRom 阅读(329) 评论(0) 推荐(0) 编辑
摘要: import numpy as np np.matrix('1, 2; 3, 4') #1, 2 #3, 4 np.matrix([[1,2],[3,4]]) #1, 2 #3, 4 阅读全文
posted @ 2017-03-23 21:56 KennyRom 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Map applies a function to all the items in an input_list Blueprint Most of the times we want to pass all the list elements to a function one-by-one an 阅读全文
posted @ 2017-03-23 20:57 KennyRom 阅读(232) 评论(0) 推荐(0) 编辑
摘要: Description The method strip() returns a copy of the string in which all chars have been stripped from the beginning and the end of the string (defaul 阅读全文
posted @ 2017-03-23 20:48 KennyRom 阅读(261) 评论(0) 推荐(0) 编辑