We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db0b898 commit 1ec9fb4Copy full SHA for 1ec9fb4
machine_learning/apriori_algorithm.py
@@ -81,7 +81,7 @@ def apriori(data: list[list[str]], min_support: int) -> list[tuple[list[str], in
81
k = 2
82
while current_frequents:
83
candidates = [
84
- sorted(list(set(i) | set(j)))
+ sorted(set(i) | set(j))
85
for i in current_frequents
86
for j in current_frequents
87
if len(set(i).union(j)) == k
0 commit comments