Fix ml files and add algorithms #14340
Closed
Annotations
10 errors
|
Run uvx ruff check --output-format=github .:
strings/rabin_karp_search.py#L65
strings/rabin_karp_search.py:65:9: SIM102 Use a single `if` statement instead of nested `if` statements
help: Combine `if` statements using `and`
|
|
Run uvx ruff check --output-format=github .:
strings/rabin_karp_search.py#L57
strings/rabin_karp_search.py:57:9: B007 Loop control variable `i` not used within loop body
help: Rename unused `i` to `_i`
|
|
Run uvx ruff check --output-format=github .:
searches/jump_search.py#L23
searches/jump_search.py:23:5: UP047 Generic function `jump_search` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
machine_learning/random_forest_regressor.py#L55
machine_learning/random_forest_regressor.py:55:5: RUF059 Unpacked variable `fig` is never used
help: Prefix it with an underscore or any other dummy variable pattern
|
|
Run uvx ruff check --output-format=github .:
machine_learning/linear_discriminant_analysis.py#L255
machine_learning/linear_discriminant_analysis.py:255:5: UP047 Generic function `valid_input` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
machine_learning/gradient_boosting_regressor.py#L55
machine_learning/gradient_boosting_regressor.py:55:5: RUF059 Unpacked variable `fig` is never used
help: Prefix it with an underscore or any other dummy variable pattern
|
|
Run uvx ruff check --output-format=github .:
machine_learning/gaussian_naive_bayes.py#L8
machine_learning/gaussian_naive_bayes.py:8:17: F401 `numpy` imported but unused
help: Remove unused import: `numpy`
|
|
Run uvx ruff check --output-format=github .:
graphs/check_bipartite.py#L2
graphs/check_bipartite.py:2:1: UP035 Import from `collections.abc` instead: `Hashable`
help: Import from `collections.abc`
|
|
Run uvx ruff check --output-format=github .:
data_structures/hashing/hash_table_with_linked_list.py#L11
data_structures/hashing/hash_table_with_linked_list.py:11:28: RUF037 Unnecessary empty iterable within a deque call
help: Replace with `deque()`
|
|
Run uvx ruff check --output-format=github .:
data_structures/binary_tree/b_tree.py#L66
data_structures/binary_tree/b_tree.py:66:49: RUF002 Docstring contains ambiguous `−` (MINUS SIGN). Did you mean `-` (HYPHEN-MINUS)?
|
Loading