{"blog_title":"\u9759\u304b\u306a\u308b\u540d\u8f9e","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhayataka2049.hatenablog.jp%2Fentry%2F2018%2F04%2F10%2F144717\" title=\"\u3010python\u3011\u8ddd\u96e2\u30fb\u975e\u985e\u4f3c\u5ea6\u884c\u5217\u3092\u8a08\u7b97\u3059\u308b - \u9759\u304b\u306a\u308b\u540d\u8f9e\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","description":"\u8a18\u4e8b\u6982\u8981 \u975e\u985e\u4f3c\u5ea6\u884c\u5217\uff08\u8ddd\u96e2\u884c\u5217\uff09\u306e\u8a08\u7b97\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3059\u308b\u3002 \u8a08\u7b97\u65b9\u6cd5 \u5bfe\u8c61\u30c7\u30fc\u30bf\u3068\u4f7f\u3046\u975e\u985e\u4f3c\u5ea6 \u3068\u308a\u3042\u3048\u305a\u3001\u30c7\u30fc\u30bf\u30925\u3064\u4f5c\u308b\u3002iris\u306e\u5148\u982d5\u8981\u7d20\u3092\u62bd\u51fa\u3059\u308b\u3002 from sklearn.datasets import load_iris iris = load_iris() data = iris.data[:5] 5*5\u306e\u975e\u985e\u4f3c\u5ea6\u884c\u5217\u3092\u4f5c\u308a\u305f\u3044\u3068\u3044\u3046\u30b7\u30c1\u30e5\u30a8\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308b\u3002\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af \u30ea\u30b9\u30c8\u3068\u30eb\u30fc\u30d7\u3092\u4f7f\u3063\u305f\u65b9\u6cd5 scipy.spatial.distance\u3092\u4f7f\u3046\u3068\u8ddd\u96e2\uff08\u975e\u985e\u4f3c\u5ea6\uff09\u306e\u8a08\u7b97\u306f\u7c21\u5358\u306b\u3067\u304d\u308b\u3002scipy.spatial.distance.pdist \u2014 SciPy v1.2\u2026","url":"https://hayataka2049.hatenablog.jp/entry/2018/04/10/144717","provider_url":"https://hatena.blog","width":"100%","provider_name":"Hatena Blog","published":"2018-04-10 14:47:17","author_url":"https://blog.hatena.ne.jp/hayataka2049/","blog_url":"https://hayataka2049.hatenablog.jp/","author_name":"hayataka2049","title":"\u3010python\u3011\u8ddd\u96e2\u30fb\u975e\u985e\u4f3c\u5ea6\u884c\u5217\u3092\u8a08\u7b97\u3059\u308b","type":"rich","categories":["python","scipy","\u6a5f\u68b0\u5b66\u7fd2"],"image_url":"https://chart.apis.google.com/chart?cht=tx&chl=%20sim%28a%2Cb%29%20%3D%201%20-%20dissim%28a%2C%20b%29"}