Steve Kim
|
ae4d7d4d04
|
add similarity_search.py in machine_learning (#3864)
* add similarity_search.py in machine_learning
adding similarity_search algorithm in machine_learning
* fix pre-commit test, apply feedback
isort, codespell changed.
applied feedback(np -> np.ndarray)
* apply feedback
add type hints to euclidean method
* apply feedback
- changed euclidean's type hints
- changed few TypeError to ValueError
- changed range(len()) to enumerate()
- changed error's strings to f-string
- implemented without type()
- add euclidean's explanation
* apply feedback
- deleted try/catch in euclidean
- added error tests
- name change(value -> value_array)
* # doctest: +NORMALIZE_WHITESPACE
* Update machine_learning/similarity_search.py
* placate flake8
Co-authored-by: Christian Clauss <cclauss@me.com>
|
2020-11-13 15:26:17 +01:00 |
|