MCPcopy Create free account
hub / github.com/Erikfather/Decision_tree-python / majorityCnt

Function majorityCnt

tree.py:159–170  ·  view source on GitHub ↗

数据集已经处理了所有属性,但是类标签依然不是唯一的, 此时我们需要决定如何定义该叶子节点,在这种情况下,我们通常会采用多数表决的方法决定该叶子节点的分类

(classList)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

ID3_createTreeFunction · 0.85
C45_createTreeFunction · 0.85
CART_createTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected