Skip to content

Commit c2d0613

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent def174d commit c2d0613

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
@@ -14,6 +14,7 @@
1414
from itertools import combinations
1515
from collections import Counter
1616

17+
1718
def load_data() -> list[list[str]]:
1819
"""
1920
Returns a sample transaction dataset.
@@ -46,7 +47,7 @@ def prune(itemset: list, candidates: list, length: int) -> list:
4647
"""
4748
itemset_counter = Counter(itemset)
4849
pruned = []
49-
50+
5051
for candidate in candidates:
5152
is_subsequence = True
5253
for item in candidate:

0 commit comments

Comments
 (0)