Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
12
class
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
21
class
DecisionTree:
Callers
2
grow
Function · 0.90
_grow
Method · 0.85
Calls
no outgoing calls
Tested by
1
grow
Function · 0.72