Skip to content

Commit 3a561b3

Browse files
Update apriori_algorithm.py
1 parent 1957f9b commit 3a561b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

machine_learning/apriori_algorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def prune(itemset: list, candidates: list, length: int) -> list:
4545
>>> prune(itemset, candidates, 3)
4646
[]
4747
"""
48-
itemset_counter = Counter(tuple(x) for x in itemset)
48+
itemset_counter = Counter(tuple(item) for item in itemset)
4949
pruned = []
5050
for candidate in candidates:
5151
is_subsequence = True

0 commit comments

Comments
 (0)