I keep getting this error about sklearn not having an attribute, I have uninstalled, reinstalled, the latest jupyter update 6.5.2.
Please advise.
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /var/folders/4z/4j0f2mv54tx71fx1389__rjw0000gn/T/ipykernel_34588/2840068040.py in 19 20 # To tune model, get different metric scores, and split data ---> 21 from sklearn import metrics 22 from sklearn.model_selection import ( 23 train_test_split, /Applications/anaconda3/lib/python3.9/site-packages/sklearn/metrics/__init__.py in 39 from ._dist_metrics import DistanceMetric 40 ---> 41 from . import cluster 42 from .cluster import adjusted_mutual_info_score 43 from .cluster import adjusted_rand_score /Applications/anaconda3/lib/python3.9/site-packages/sklearn/metrics/cluster/__init__.py in 20 from ._supervised import fowlkes_mallows_score 21 from ._supervised import entropy ---> 22 from ._unsupervised import silhouette_samples 23 from ._unsupervised import silhouette_score 24 from ._unsupervised import calinski_harabasz_score /Applications/anaconda3/lib/python3.9/site-packages/sklearn/metrics/cluster/_unsupervised.py in 14 from ...utils import check_X_y 15 from ...utils import _safe_indexing ---> 16 from ..pairwise import pairwise_distances_chunked 17 from ..pairwise import pairwise_distances 18 from ...preprocessing import LabelEncoder /Applications/anaconda3/lib/python3.9/site-packages/sklearn/metrics/pairwise.py in 31 from ..utils.fixes import sp_version, parse_version 32 ---> 33 from ._pairwise_distances_reduction import PairwiseDistancesArgKmin 34 from ._pairwise_fast import _chi2_kernel_fast, _sparse_manhattan 35 from ..exceptions import DataConversionWarning /Applications/anaconda3/lib/python3.9/site-packages/sklearn/metrics/_pairwise_distances_reduction/__init__.py in 87 88 ---> 89 from ._dispatcher import ( 90 BaseDistancesReductionDispatcher, 91 ArgKmin, /Applications/anaconda3/lib/python3.9/site-packages/sklearn/metrics/_pairwise_distances_reduction/_dispatcher.py in 9 from .._dist_metrics import BOOL_METRICS, METRIC_MAPPING 10 ---> 11 from ._base import _sqeuclidean_row_norms32, _sqeuclidean_row_norms64 12 from ._argkmin import ( 13 ArgKmin64, sklearn/metrics/_pairwise_distances_reduction/_base.pyx in init sklearn.metrics._pairwise_distances_reduction._base() AttributeError: module 'sklearn.metrics._dist_metrics' has no attribute 'DistanceMetric32'