8000 Optics · Issue #11954 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

Optics #11954

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
michaeloc opened this issue Aug 31, 2018 · 3 comments
Closed

Optics #11954

michaeloc opened this issue Aug 31, 2018 · 3 comments

Comments

@michaeloc
Copy link

Description

Unknown metric haversine. Valid metrics are ['euclidean', 'l2', 'l1', 'manhattan', 'cityblock', 'braycurtis', 'canberra', 'chebyshev', 'correlation', 'cosine', 'dice', 'hamming', 'jaccard', 'kulsinski', 'mahalanobis', 'matching', 'minkowski', 'rogerstanimoto', 'russellrao', 'seuclidean', 'sokalmichener', 'sokalsneath', 'sqeuclidean', 'yule', 'wminkowski'], or 'precomputed', or a callable

Steps/Code to Reproduce

from sklearn.cluster import OPTICS
opt = OPTICS(min_samples=5,metric='haversine')
opt.fit_predict(lat_lng)

Expected Results

Actual Results

Versions

@adrinjalali
Copy link
Member

AFAIK, at the moment OPTICS supports what's supported in NearestNeighbors and pairwise_distances, which is what you see in the reported list.

Is this a feature request?

Funny enough, the metric's documentation doesn't even include all the options reported in your error message.

I've noticed the documentation of metric could be better. It's WIP (#11857)

@jnothman
Copy link
Member
jnothman commented Sep 1, 2018 via email

@michaeloc
Copy link
Author
michaeloc commented Sep 1, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
0