Skip to content

Commit 81a9d8d

Browse files
committed
Merge branch 'master' of https://github.com/joaoneto9/Python
2 parents 839c43a + c2d0613 commit 81a9d8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

machine_learning/apriori_algorithm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from collections import Counter
1414
from itertools import combinations
1515

16+
1617
def load_data() -> list[list[str]]:
1718
"""
1819
Returns a sample transaction dataset.
@@ -45,7 +46,7 @@ def prune(itemset: list, candidates: list, length: int) -> list:
4546
"""
4647
itemset_counter = Counter(itemset)
4748
pruned = []
48-
49+
4950
for candidate in candidates:
5051
is_subsequence = True
5152
for item in candidate:

0 commit comments

Comments
 (0)