Skip to content
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

DistanceMetric class was moved from sklearn.neighbors to sklearn.metrics #2

Open
lulo5 opened this issue Nov 18, 2024 · 0 comments
Open

Comments

@lulo5
Copy link

lulo5 commented Nov 18, 2024

DistanceMetric class was moved from sklearn.neighbors to sklearn.metrics

Import DistanceMetric from sklearn.metrics

from sklearn.metrics import DistanceMetric

Change code to:

from sklearn.metrics import silhouette_score, adjusted_mutual_info_score, adjusted_rand_score, calinski_harabasz_score, davies_bouldin_score from sklearn.metrics import DistanceMetric # Import from sklearn.metrics instead from sklearn.decomposition import PCA from sklearn.cluster import KMeans from sklearn.manifold import TSNE from sklearn import preprocessing

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

1 participant