refactor: streamline candidate generation and pruning in Apriori algo… #17734
Annotations
5 errors
|
ruff
Process completed with exit code 1.
|
|
ruff (C414):
machine_learning/apriori_algorithm.py#L105
machine_learning/apriori_algorithm.py:105:14: C414 Unnecessary `list()` call within `sorted()`
help: Remove the inner `list()` call
|
|
ruff (E501):
machine_learning/apriori_algorithm.py#L77
machine_learning/apriori_algorithm.py:77:89: E501 Line too long (89 > 88)
|
|
ruff (RUF015):
machine_learning/apriori_algorithm.py#L77
machine_learning/apriori_algorithm.py:77:23: RUF015 Prefer `next(iter(i))` over single element slice
help: Replace with `next(iter(i))`
|
|
ruff (I001):
machine_learning/apriori_algorithm.py#L14
machine_learning/apriori_algorithm.py:14:1: I001 Import block is un-sorted or un-formatted
help: Organize imports
|