摘要:
通过这个博客学习:数据挖掘十大算法(四):Apriori(关联分析算法) 代码也是摘自上面博客,对照代码理解理论部分可能更加有助于对该算法的理解 from numpy import * # 构造数据 def loadDataSet(): return [[1, 3, 4], [2, 3, 5], [ 阅读全文
摘要:
理论部分从这里复习 决策树(呆呆的猫) 机器学习实战(三)——决策树(呆呆的猫) 代码也摘自上面博客,可以通过这个代码结合上面理论学习 from math import log import operator """ 函数说明:计算给定数据集的经验熵(香农熵) Parameters: dataSet 阅读全文