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 Yan12345678 阅读(32) 评论(0) 推荐(0) 编辑