decisionTrees_ID3
摘要:import math,operatordef calShannonEnt(dataSet): numEntries = len(dataSet) labelCounts = {} for featVec in dataSet: currentLabel = featVec[-1] if curre
阅读全文
posted @ 2021-08-31 15:37
posted @ 2021-08-31 15:37
posted @ 2021-08-28 18:37
posted @ 2021-08-28 16:38