_distribute_records(numvals,
depth,
records)
| source code
|
For each child at depth depth generate the list of
records (children_records) and the number of instances
(counts).
- Parameters:
numvals (list) - The ith element of this list is the number of values for the ith
variable in the tree
records (iterable) - The data as a list. Each element is a tuple of value indices, one
for each variable, plus an extra count field as the final
element.
depth (int) - The depth of this tree within its containing CompactFactor. Also
the index of the variable associated with the top node of this
tree
- Returns: tuple
- A 2-tuple:
children_records and counts,
as described above.
|