Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42c9856 commit 1d79a21Copy full SHA for 1d79a21
fp_growth.py
@@ -115,6 +115,8 @@ def add(self, transaction):
115
point = next_point
116
117
def _update_route(self, point):
118
+ assert self is point.tree
119
+
120
try:
121
route = self._routes[point.item]
122
route[1].neighbor = point # route[1] is the tail
@@ -200,6 +202,8 @@ def conditional_tree_from_paths(paths, minimum_support):
200
202
point.add(next_point)
201
203
tree._update_route(next_point)
204
205
206
+ assert condition_item is not None
207
208
# Calculate the counts of the non-leaf nodes.
209
for path in tree.prefix_paths(condition_item):
0 commit comments