MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / disp

Method disp

machine_learning/frequent_pattern_growth.py:49–52  ·  view source on GitHub ↗
(self, ind: int = 1)

Source from the content-addressed store, hash-verified

47 self.count += num_occur
48
49 def disp(self, ind: int = 1) -> None:
50 print(f"{' ' * ind} {self.name} {self.count}")
51 for child in self.children.values():
52 child.disp(ind + 1)
53
54
55def create_tree(data_set: list, min_sup: int = 1) -> tuple[TreeNode, dict]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected