dlab-berkeley / Python-Machine-Learning

D-Lab's 6 hour introduction to machine learning in Python. Learn how to perform classification, regression, clustering, and do model selection using scikit-learn in Python.
Other
80 stars 68 forks source link

06_clustering - Pickling error #48

Open dtbifya opened 2 years ago

dtbifya commented 2 years ago

PicklingError: ("Can't pickle <class 'numpy.dtype[float64]'>: it's not found as numpy.dtype[float64]", 'PicklingError while hashing {\'X\': array([[-0.8137693 , 0.91314495, 0.57967737, 0.00940568, 0.89901425,\n -0.49161791],\n [ 1.63793717, -0.2249728 , -1.51950333, 0.40881057, -0.92860994,\n -0.29477607],\n [-0.9352552 , -0.59635859, 1.02684012, 0.36443225, 0.91528059,\n -0.38068585],\n ...,\n [-0.14376985, 0.91913504, 0.41820193, 2.33187118, 0.78938354,\n 0.40167704],\n [-0.68216227, 0.07453187, 1.30424664, 0.04392215, 0.83929671,\n 0.06888088],\n [ 0.20869125, 0.03859131, 0.58381776, -0.39986107, 0.47987732,\n -0.46492749]]), \'connectivity\': None, \'n_clusters\': None, \'return_distance\': False}: PicklingError("Can\'t pickle <class \'numpy.dtype[float64]\'>: it\'s not found as numpy.dtype[float64]")')