05 2018 档案

随机森林-笔录
摘要:决策树有些与生俱来的缺点: 1:分类规则复杂 决策树算法在产生规则的时候采用局部贪婪法。每次都只选择一个属性进行分析构造决策树,所以再产生的分类规则往往相当复杂。 2:收敛到非全局的局部最优解 ID3算法每次在树的某个层次进行属性选择时,它不再回溯重新考虑这个选择,所以它容易产生盲人登山中常见的风险 阅读全文

posted @ 2018-05-31 23:18 多一点 阅读(322) 评论(0) 推荐(0) 编辑

numpy.argsort详解
摘要:numpy.argsort(a, axis=-1, kind='quicksort', order=None)[source] Returns the indices that would sort an array. Perform an indirect sort along the given 阅读全文

posted @ 2018-05-31 17:56 多一点 阅读(3281) 评论(1) 推荐(0) 编辑

python中列表排序,字典排序,列表中的字典排序
摘要:#-*- encoding=utf-8 -*- # python3代码 import operator 一. 按字典值排序(默认为升序) x = {1:2, 3:4, 4:3, 2:1, 0:0} 1. sorted_x = sorted(x.iteritems(), key=operator.it 阅读全文

posted @ 2018-05-30 23:06 多一点 阅读(32212) 评论(2) 推荐(3) 编辑

numpy中的reshape中参数为-1
摘要:上篇文章中的reshape(-1,2),有的时候不明白为什么会有参数-1,可以通过查找文档中的reshape()去理解这个问题 根据Numpy文档(https://docs.scipy.org/doc/numpy/reference/generated/numpy.reshape.html#nump 阅读全文

posted @ 2018-05-28 11:41 多一点 阅读(28588) 评论(2) 推荐(5) 编辑

pandas 中的DataFrame.where()使用
摘要:pandas.DataFrame.where inplace : boolean, default False Whether to perform the operation in place on the data axis : alignment axis if needed, default 阅读全文

posted @ 2018-05-28 11:35 多一点 阅读(27345) 评论(0) 推荐(1) 编辑

dataframe转换为多维矩阵,然后可以使用values来实现
摘要:原文链接:https://blog.csdn.net/WMN7Q/article/details/78508948 阅读全文

posted @ 2018-05-11 14:35 多一点 阅读(2363) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示