摘要: features = [1,2,3,4] retDataSet=[] reducedFeatVec=features[:0] print(reducedFeatVec) reducedFeatVec.extend(features[1:]) #从1开始往 后加进来 print(reducedFeat 阅读全文
posted @ 2018-05-15 19:31 jude_python 阅读(857) 评论(0) 推荐(0) 编辑
摘要: 载请注明作者和出处: http://blog.csdn.net/c406495762 运行平台: Windows Python版本: Python3.x IDE: Sublime text3 一 前言 二 决策树 三 决策树构建的准备工作 1 特征选择 11 香农熵 12 编写代码计算经验熵 13 阅读全文
posted @ 2018-05-15 15:13 jude_python 阅读(308) 评论(0) 推荐(0) 编辑