{"blog_title":"\u30af\u30c3\u30ad\u30fc\u306e\u65e5\u8a18","author_name":"cookie-box","provider_url":"https://hatena.blog","width":"100%","published":"2017-06-11 22:40:32","author_url":"https://blog.hatena.ne.jp/cookie-box/","provider_name":"Hatena Blog","title":"\u96d1\u8a18\uff1a sklearn.cluster.KMeans \u3067 k-means \u6cd5","url":"https://cookie-box.hatenablog.com/entry/2017/06/11/224032","description":"sklearn.cluster.KMeans \u3092\u3064\u304b\u3063\u3066\u307f\u305f\u3044\u3068\u304d\u3068\u304b\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002iris \u30c7\u30fc\u30bf\u306b\u3064\u304b\u3046\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002 # -*- coding: utf-8 -*- import pandas from sklearn import datasets from sklearn.cluster import KMeans from sklearn.metrics import confusion_matrix if __name__ == \"__main__\": iris = datasets.load_iris() predict = KMeans(n_clusters=3)\u2026","blog_url":"https://cookie-box.hatenablog.com/","height":"190","version":"1.0","image_url":null,"type":"rich","categories":["\u96d1\u8a18","Python","\u6559\u5e2b\u306a\u3057\u5b66\u7fd2"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcookie-box.hatenablog.com%2Fentry%2F2017%2F06%2F11%2F224032\" title=\"\u96d1\u8a18\uff1a sklearn.cluster.KMeans \u3067 k-means \u6cd5 - \u30af\u30c3\u30ad\u30fc\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}