MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / knn_vectorized.py

File knn_vectorized.py

supervised_class/knn_vectorized.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1# https://deeplearningcourses.com/c/data-science-supervised-machine-learning-in-python
2# https://www.udemy.com/data-science-supervised-machine-learning-in-python
3# This is an example of a K-Nearest Neighbors classifier on MNIST data.
4# We try k=1...5 to show how we might choose the best k.

Callers

nothing calls this directly

Calls 4

get_dataFunction · 0.90
KNNClass · 0.70
fitMethod · 0.45
scoreMethod · 0.45

Tested by

no test coverage detected