Update our pre-commit dependencies (#4273) · zinating/algorithms-python@9875673 · GitHub
Skip to content

Commit 9875673

Browse files
cclaussgithub-actions
andauthored
Update our pre-commit dependencies (TheAlgorithms#4273)
* .pre-commit-config.yaml: mypy directories that pass * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent b8a19cc commit 9875673

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions

machine_learning/k_nearest_neighbours.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def classifier(train_data, train_target, classes, point, k=5):
3232
:train_data: Set of points that are classified into two or more classes
3333
:train_target: List of classes in the order of train_data points
3434
:classes: Labels of the classes
35-
:point: The data point that needs to be classifed
35+
:point: The data point that needs to be classified
3636
3737
>>> X_train = [[0, 0], [1, 0], [0, 1], [0.5, 0.5], [3, 3], [2, 3], [3, 2]]
3838
>>> y_train = [0, 0, 0, 0, 1, 1, 1]

maths/polynomial_evaluation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def evaluate_poly(poly: Sequence[float], x: float) -> float:
55
"""Evaluate a polynomial f(x) at specified point x and return the value.
66
77
Arguments:
8-
poly -- the coeffiecients of a polynomial as an iterable in order of
8+
poly -- the coefficients of a polynomial as an iterable in order of
99
ascending degree
1010
x -- the point at which to evaluate the polynomial
1111
@@ -26,7 +26,7 @@ def horner(poly: Sequence[float], x: float) -> float:
2626
https://en.wikipedia.org/wiki/Horner's_method
2727
2828
Arguments:
29-
poly -- the coeffiecients of a polynomial as an iterable in order of
29+
poly -- the coefficients of a polynomial as an iterable in order of
3030
ascending degree
3131
x -- the point at which to evaluate the polynomial
3232

searches/hill_climbing.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)