<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bob3</author_name>
  <author_url>https://blog.hatena.ne.jp/bob3/</author_url>
  <blog_title>bob3’s blog</blog_title>
  <blog_url>https://bob3.hatenablog.com/</blog_url>
  <categories>
    <anon>R</anon>
  </categories>
  <description>この項では先に作ったtopMatches関数を使って作品ごとに類似性スコア高いほかの作品のリストを作っている。 だけど、R言語では作品ごとに処理するよりも行列として処理したほうが簡単なので、topMatches関数は使わずに類似性スコアの行列を直接作ってみる。 それと例によって類似性の指標をオプションで選べるようにしてある。 # 作品同士の類似性スコア行列を算出する関数。 # prefs 行が作品、列が評者のマトリクス # person 対象者 # similarity 類似性の指標。既定値はユークリッド平方距離。 # &quot;euclidean&quot; ユークリッド平方距離 # &quot;euclidean.c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbob3.hatenablog.com%2Fentry%2F20081116%2Fp1&quot; title=&quot; 2.7.1 アイテム間の類似度のデータセットを作る - bob3’s blog&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-11-16 00:00:01</published>
  <title> 2.7.1 アイテム間の類似度のデータセットを作る</title>
  <type>rich</type>
  <url>https://bob3.hatenablog.com/entry/20081116/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
