MCPcopy
hub / github.com/ddbourgin/numpy-ml / Leaf

Class Leaf

numpy_ml/trees/dt.py:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12class Leaf:
13 def __init__(self, value):
14 """
15 `value` is an array of class probabilities if classifier is True, else
16 the mean of the region
17 """
18 self.value = value
19
20
21class DecisionTree:

Callers 2

growFunction · 0.90
_growMethod · 0.85

Calls

no outgoing calls

Tested by 1

growFunction · 0.72