- 博客(5)
- 收藏
- 关注
转载 sklearn GridSearchCV
sklearn.grid_search.GridSearchCV(estimator, param_grid, scoring=None, fit_params=None, n_jobs=1, iid=True, refit=True, cv=None, verbose=0, pre_dispatch='2*n_jobs', error_score='raise')
2018-01-10 12:27:16
186
转载 python-pandas
series:两字典相加有缺省值时,依旧为缺省值:sdata = {'Ohio':45000, 'Texas':71000, 'Oregon':16000, 'Utah':5000}obj3 = Series(sdata)print(obj3)states = ['California', 'Ohio', 'Oregon', 'Texas']obj4 = Series(sdata, in...
2017-12-19 13:56:21
98
转载 python 切片方法
使用索引获取列表的元素(随机读取) 列表元素支持用索引访问,正向索引从0开始 colors=["red","blue","green"] colors[0] =="red" colors[1]=="blue" 同时,也可以使用负向索引(pyth
2017-12-17 14:52:01
1007
转载 python记录 trees
log()函数:log()方法返回x的自然对数,对于x>0。以下是log()方法的语法:123importmath math.log( x )注意:此函数是无法直接访问的,所以我们需要导入math模块,然后需要用math的静态对象来调用这个函数。参
2017-12-15 12:28:36
326
转载 python记录 k-nearest neighbor
shape 函数:建立一个4×2的矩阵c, c.shape[1] 为第一维的长度,c.shape[0] 为第二维的长度。[plain] view plain copy>>> c = array([[1,1],[1,2],[1,3],[1,4]]) >>> c.shape (4, 2) >>> c.shape[
2017-12-11 14:05:07
314
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人