mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Consolidate the two existing kNN implementations (#8903)
* Add type hints to k_nearest_neighbours.py
* Refactor k_nearest_neighbours.py into class
* Add documentation to k_nearest_neighbours.py
* Use heap-based priority queue for k_nearest_neighbours.py
* Delete knn_sklearn.py
* updating DIRECTORY.md
* Use optional args in k_nearest_neighbours.py for demo purposes
* Fix wrong function arg in k_nearest_neighbours.py
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@@ -507,7 +507,6 @@
|
||||
* [Gradient Descent](machine_learning/gradient_descent.py)
|
||||
* [K Means Clust](machine_learning/k_means_clust.py)
|
||||
* [K Nearest Neighbours](machine_learning/k_nearest_neighbours.py)
|
||||
* [Knn Sklearn](machine_learning/knn_sklearn.py)
|
||||
* [Linear Discriminant Analysis](machine_learning/linear_discriminant_analysis.py)
|
||||
* [Linear Regression](machine_learning/linear_regression.py)
|
||||
* Local Weighted Learning
|
||||
|
||||
Reference in New Issue
Block a user