ageitgey / face_recognition

The world's simplest facial recognition api for Python and the command line
MIT License
52.79k stars 13.42k forks source link

knn_algo #646

Open BraaZain opened 5 years ago

BraaZain commented 5 years ago

hi, in the train method the example uses a knn_algo='ball_tree' as the default , but what are the other algorithms that we could use?? and are they better than the default??

ageitgey commented 5 years ago

Thee options are['auto', 'ball_tree', 'kd_tree', 'brute']. When the default value auto is passed, the algorithm attempts to determine the best approach from the training data. For a discussion of the strengths and weaknesses of each option, see http://scikit-learn.org/stable/modules/neighbors.html#nearest-neighbor-algorithms