You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> NearestNeighbors(metric='cosine')
Traceback:
...
ValueError: Metric 'cosine' not valid for algorithm 'auto'
Why should 'auto' not default to 'brute' when trees do not support the metric? Apart from making it easier for users, a user would get an automatic benefit from using 'auto' if a tree implementation eventually appeared.