ubuntu2004
Kernel: Python 3 (system-wide)
In [0]:
In [0]:
In [1]:
In [2]:
Out[2]:
/usr/local/lib/python3.6/dist-packages/sklearn/utils/deprecation.py:143: FutureWarning: The sklearn.datasets.samples_generator module is deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes / functions should instead be imported from sklearn.datasets. Anything that cannot be imported from sklearn.datasets is now part of the private API.
warnings.warn(message, FutureWarning)
In [3]:
In [4]:
In [5]:
Out[5]:
<matplotlib.collections.PathCollection at 0x7f43a8a6b8d0>
In [6]:
In [7]:
In [8]:
Out[8]:
In [9]:
Out[9]:
In [10]:
In [1]:
In [2]:
In [3]:
In [4]:
In [5]:
In [6]:
In [7]:
In [8]:
In [9]:
In [10]:
In [11]:
In [12]:
In [13]:
Out[13]:
array([[-0.90068117, 1.01900435, -1.34022653, -1.3154443 ],
[-1.14301691, -0.13197948, -1.34022653, -1.3154443 ],
[-1.38535265, 0.32841405, -1.39706395, -1.3154443 ],
[-1.50652052, 0.09821729, -1.2833891 , -1.3154443 ],
[-1.02184904, 1.24920112, -1.34022653, -1.3154443 ],
[-0.53717756, 1.93979142, -1.16971425, -1.05217993],
[-1.50652052, 0.78880759, -1.34022653, -1.18381211],
[-1.02184904, 0.78880759, -1.2833891 , -1.3154443 ],
[-1.74885626, -0.36217625, -1.34022653, -1.3154443 ],
[-1.14301691, 0.09821729, -1.2833891 , -1.44707648]])
In [111]:
In [112]:
Out[112]:
KMeans(n_clusters=3, random_state=5)
In [113]:
In [114]:
Out[114]:
(150, 4)
In [115]:
Out[115]:
In [122]:
In [123]:
In [124]:
Out[124]:
In [125]:
In [126]:
Out[126]:
<AxesSubplot:>
In [0]: