摘要: 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 阅读(323) 评论(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 阅读(336) 评论(0) 推荐(0) 编辑
摘要: ndarray.shape Tuple of array dimensions. 阅读全文
posted @ 2017-03-23 22:20 KennyRom 阅读(798) 评论(0) 推荐(0) 编辑
摘要: 计算中所有元素的值 Example: 阅读全文
posted @ 2017-03-23 22:07 KennyRom 阅读(328) 评论(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 阅读(209) 评论(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 阅读(231) 评论(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 阅读(260) 评论(0) 推荐(0) 编辑