MCPcopy Create free account
hub / github.com/ddbourgin/numpy-ml / __init__

Method __init__

numpy_ml/utils/data_structures.py:177–185  ·  view source on GitHub ↗
(self, centroid=None, X=None, y=None)

Source from the content-addressed store, hash-verified

175
176class BallTreeNode:
177 def __init__(self, centroid=None, X=None, y=None):
178 self.left = None
179 self.right = None
180 self.radius = None
181 self.is_leaf = False
182
183 self.data = X
184 self.targets = y
185 self.centroid = centroid
186
187 def __repr__(self):
188 fstr = "BallTreeNode(centroid={}, is_leaf={})"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected