mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Update our pre-commit dependencies (#4273)
* .pre-commit-config.yaml: mypy directories that pass
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@@ -32,7 +32,7 @@ def classifier(train_data, train_target, classes, point, k=5):
|
||||
:train_data: Set of points that are classified into two or more classes
|
||||
:train_target: List of classes in the order of train_data points
|
||||
:classes: Labels of the classes
|
||||
:point: The data point that needs to be classifed
|
||||
:point: The data point that needs to be classified
|
||||
|
||||
>>> X_train = [[0, 0], [1, 0], [0, 1], [0.5, 0.5], [3, 3], [2, 3], [3, 2]]
|
||||
>>> y_train = [0, 0, 0, 0, 1, 1, 1]
|
||||
|
||||
Reference in New Issue
Block a user