<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hayataka2049</author_name>
  <author_url>https://blog.hatena.ne.jp/hayataka2049/</author_url>
  <blog_title>静かなる名辞</blog_title>
  <blog_url>https://hayataka2049.hatenablog.jp/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>scipy</anon>
    <anon>機械学習</anon>
  </categories>
  <description>記事概要 非類似度行列（距離行列）の計算方法について説明する。 計算方法 対象データと使う非類似度 とりあえず、データを5つ作る。irisの先頭5要素を抽出する。 from sklearn.datasets import load_iris iris = load_iris() data = iris.data[:5] 5*5の非類似度行列を作りたいというシチュエーションである。スポンサーリンク リストとループを使った方法 scipy.spatial.distanceを使うと距離（非類似度）の計算は簡単にできる。scipy.spatial.distance.pdist — SciPy v1.2…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhayataka2049.hatenablog.jp%2Fentry%2F2018%2F04%2F10%2F144717&quot; title=&quot;【python】距離・非類似度行列を計算する - 静かなる名辞&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://chart.apis.google.com/chart?cht=tx&amp;chl=%20sim%28a%2Cb%29%20%3D%201%20-%20dissim%28a%2C%20b%29</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-04-10 14:47:17</published>
  <title>【python】距離・非類似度行列を計算する</title>
  <type>rich</type>
  <url>https://hayataka2049.hatenablog.jp/entry/2018/04/10/144717</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
